|
From: | Don Cruickshank |
Subject: | RE: [Myexperiment-discuss] problem posting comments on the workflow |
Date: | Fri, 19 Mar 2010 07:28:50 +0000 |
Hi Archit, Thank you for pointing this out. I have just corrected the example on wiki as it was incorrect! The format of the message body should look like this: <?xml version="1.0" encoding="UTF-8"?> <comment> <subject resource="http://www.myexperiment.org/workflows/173"/> <comment>This is my comment.</comment> </comment> Thanks, Don. From: address@hidden [mailto:address@hidden On Behalf Of Archit Puri Hello Everyone I was working on myexperiment and was wondering if anyone of you have worked with POST requests using the myexperiment API. I have downloaded the myexperiment client OAuth and unable to work with POST Comments. thanks in advance Archit The message sent is:
Content Type: application.xml Accept: Body: <?xml version="1.0" encoding="UTF-8" ?> <comment> <resource>http://www.myexperiment.org/workflows/1089</resource> <comment>This is my comment.</comment> </comment> Error received is: <?xml version="1.0"?> <error code="400" message="Bad Request"> <reason>Commentable type can't be blank</reason> </error>
|
[Prev in Thread] | Current Thread | [Next in Thread] |