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&timestamp=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=&timestamp=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>

Comments

New comments are not being accepted at this time.