pikeo.comments.updateComment

Updates the text of a comment (comment_id).

Logged access is required to edit a comment.

Additional Parameters

Type Parameter Required Description
Integer comment_id Yes The id of the comment to edit
String text Yes The new text corresponding to the comment

 

Returns

The id of the updated comment.

REST

Call

The following code represents the parameters of the HTTP POST request:

text=comment+updated+through+the+API&login=jattali&comment_id=1767&nonce=LTExNDc5NTcxODg4NjcyMzI3NzU%3D&timestamp=2007-11-19T12%3A08%3A48Z&api_key=your_api_key&api_sig=tHLSL6KUTFyCkdbVkuWt7orZk%2FU%3D&method=pikeo.comments.updateComment
(decoded : text=comment updated through the API&login=jattali&comment_id=1767&nonce=LTExNDc5NTcxODg4NjcyMzI3NzU=&timestamp=2007-11-19T12:08:48Z&api_key=your_api_key&api_sig=tHLSL6KUTFyCkdbVkuWt7orZk/U=&method=pikeo.comments.updateComment)

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>comment_id</name>
            <value>
              <i4>1767</i4>
            </value>
          </member>
          <member>
            <name>text</name>
            <value>
              <string>comment updated 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.