Comment on a document.
- This method call must be authenticated and signed.
- This method requires "write" permission on docs.
URL
HTTP POSThttp://api.ipernity.com/api/doc.comments.add
Parameters
api_key
|
∗ |
Your api_key.
|
doc_id
|
∗ |
The ID of the document you wish to add a comment on
|
content
|
∗ |
The comment text. (Some HTML tags are accepted)
|
preview
|
|
Set this flag to 1 to preview the comment. The comment will not be added.
|
∗ : this parameter is required.
Response
<comment comment_id="565889" user_id="58856" posted_at="1216898438"
link="http://www.ipernity.com/doc/87890/8776/comment/565889#comment565889"
>
<content>This is <b>your</b> comment.</content>
</comment>
You can't post twice the same comment on a given document. If this happens, the comment will be accepted but not added as a duplicate.
Error codes
| 1 |
Document not found |
| 2 |
Comment text is empty |
| 3 |
No permission to comment |
| 4 |
Comments limit reached |
|
| 100 |
API Key is missing |
| 101 |
API Key is invalid |
| 102 |
Invalid format |
| 103 |
Method not found |
| 104 |
Signature missing |
| 105 |
Signature is invalid |
| 106 |
Token missing |
| 107 |
Token invalid |
| 108 |
Account closed |
| 109 |
Action blocked |
| 110 |
Insufficient permissions |
| 111 |
IP not allowed |
| 112 |
Application Quota Error |
| 113 |
Client IP Quota Error |
| 120 |
HTTP POST required |
| 121 |
Invalid SOAP envelope |
| 122 |
Invalid XML-RPC envelope |
| 130 |
OAuth protocol version unsupported |
| 131 |
OAuth parameters are missing |
| 132 |
OAuth Clock skew |
| 133 |
OAuth Nonce is invalid |
| 134 |
OAuth Timestamp is invalid |
| 135 |
OAuth Signature method unsupported |
| 500 |
Service error |
| 501 |
Maintenance mode |
| 503 |
Service unavailable |
Changelog
- 2008-12-01: Method created.
See also