- Previous: pikeo.albums.getPhotos
- Up: List of the Methods
- Next: pikeo.comments.deleteComment
pikeo.comments.addComment
Adds a comment to a particular photo (photo_id).
Logged access is required to add a comment.
Additional Parameters
| Type | Parameter | Required | Description |
|---|---|---|---|
| Integer | photo_id | Yes | The id of the photo to get the comments for |
| String | text | Yes | The text corresponding to the comment |
| Integer | parent_id | No | Use this parameter to reply to a previous comment, parent_id corresponds to the id of the comment the user wants to reply to |
Returns
The id of the new added comment.
REST
Call
The following code represents the parameters of the HTTP POST request:
text=comment+added+through+the+API&login=jattali&photo_id=23703&nonce=LTExNDc5NTcxODg4NjcyMzI3NzU%3D×tamp=2007-11-19T12%3A08%3A48Z&api_key=your_api_key&api_sig=tHLSL6KUTFyCkdbVkuWt7orZk%2FU%3D&method=pikeo.comments.addComment(decoded : text=comment added through the API&login=jattali&photo_id=23703&nonce=LTExNDc5NTcxODg4NjcyMzI3NzU=×tamp=2007-11-19T12:08:48Z&api_key=your_api_key&api_sig=tHLSL6KUTFyCkdbVkuWt7orZk/U=&method=pikeo.comments.addComment)
Response
<?xml version="1.0" encoding="UTF-8"?>
<response>
<value>
1767
</value>
</response>
XMLRPC
Call
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>pikeo.comments.addComment</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>login</name>
<value>jattali</value>
</member>
<member>
<name>nonce</name>
<value>LTQyMDA4MDE2Njc3OTYwNjc3OTA=</value>
</member>
<member>
<name>timestamp</name>
<value>2007-10-31T14:51:24Z</value>
</member>
<member>
<name>api_key</name>
<value>your_api_key</value>
</member>
<member>
<name>api_sig</name>
<value>5KPbMf+qvR5FQ089fx4Uj68dtd0=</value>
</member>
<member>
<name>photo_id</name>
<value>
<i4>23703</i4>
</value>
</member>
<member>
<name>text</name>
<value>
<string>comment added through the api</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>
Response
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<i4>1767</i4>
</value>
</param>
</params>
</methodResponse>
- Previous: pikeo.albums.getPhotos
- Up: List of the Methods
- Next: pikeo.comments.deleteComment
Docs Navigation
- Home
- API
- pikeo test echo
- pikeo test version
- pikeo test login
- pikeo albums getInfo
- pikeo albums getList
- pikeo albums getPhotos
- pikeo comments addComment
- pikeo comments deleteComment
- pikeo comments getList
- pikeo comments getMyCommentedPhotos
- pikeo comments getPicturesCommentedByMe
- pikeo comments updateComment
- pikeo contacts getList
- pikeo groups addPhotos
- pikeo groups findByName
- pikeo groups getInfo
- pikeo groups getList
- pikeo groups getMembers
- pikeo groups getPhotos
- pikeo groups removePhotos
- pikeo groups search
- pikeo people findByUsername
- pikeo people getInfo
- pikeo people getMyInfo
- pikeo people getPublicPhotos
- pikeo photos addTags
- pikeo photos getContactsPublicPhotos
- pikeo photos getInfo
- pikeo photos getMostViewed
- pikeo photos getUserPhotos
- pikeo photos search
- pikeo photos setMeta
- pikeo photos setPrivacy
- pikeo photos upload
- Authentication
- PictureURL
- Errors
- phpApiKit
- javaApiKit
- DTO

Comments
New comments are not being accepted at this time.