API Method: /api/comment/add
Post a new comment.
Parameters
Parameter | Description |
---|---|
object_id (required) | Identifier of the object you want to add a comment to. This is almost always the photo_id of a photo or video object. |
object_type (required) | The type of object for which you are adding a comment. The only allowed value it photo . |
name | The name of the poster of the comment. |
The email address of the poster of the comment. | |
content (required) | The content of the comment to be posted. |
ip_address | The IP address of the poster of the comment. This is used for spam protection and learning. This option is only available with `write` permissions or higher. |
comment_type | Type of comment. Will default to comment but may also be for example question. |
comment_time | An optional floating number to indicate the comment's position relative to the video's timeline. |
Permission level
The minimum required permission level is:
anonymous
Example XML Response
<response status="ok" permission_level="write"
message="The comment was added" cached="0"/>
Example JSON Response
{
"status": "ok",
"message":"The comment was added",
"permission_level":"write",
"cached":"0",
"photo":{},
"p": "1",
"size": "1",
"site": { ... },
"endpoint": "/api/comment/delete"
}