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 |
---|
Request: | GET POST PUT DELETE |
/ announcements.xml announcement.xml citation.xml comment.xml download.xml experiment.xml files.xml file.xml group-count.xml groups.xml group.xml job.xml message.xml packs.xml pack.xml picture.xml rating.xml rest-uri.xml review.xml runner.xml search.xml tag-cloud.xml tagged.xml tags.xml tag.xml user-count.xml users.xml user.xml workflows.xml workflow.xml |
? | all_elements api_version elements id num order page query resource sort tag type version |
= | & | all_elements api_version elements id num order page query resource sort tag type version |
= |
|
Content Type: 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>