myexperiment-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Myexperiment-discuss] problem posting comments on the workflow


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
Sent: 19 March 2010 00:07
To: address@hidden
Subject: [Myexperiment-discuss] problem posting comments on the workflow

 

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: 

 

 

 

Method

Resource

Parameters 2 [Set]

Request: 

[POST \/]

/ [comment.xml \/]

?

[all_elements \/]

&

[all_elements \/]

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>
 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]