Edit Comment

From KickApps Documentation

Jump to: navigation, search

Edit an existing comment on a member profile or a media item. With this call, you can update the comment body and subject. Your request will look something like the following:

http://api.kickapps.com/rest/editcomment/{messageId}/{mediaType}/{mediaId}/{as}

Contents

Parameters

As shown above, your call will include the following parameters:

  • messageId. The numeric id for the comment.
  • mediaType. The media type. audio, photo, sets, blog, video, or user. KickApps' sample applications use mediaType to check for the Flash player to use.
  • mediaId. The numeric id of the media. Unless you are an editor or the web master, you can only edit your own comments.
  • as. The affiliate site Id that this comment is posted on.

Post Parameters

  • t. String. Required. Your access permissions.
  • callback. String. Optional. The name of your JavaScript callback function.
  • clientIP. String. Optional. Use the clientIP parameter to pass the IP address of the user making the call. If the IP has been blocked by the webmaster under the Affiliate Center -> Manage Members section, an error message will be returned starting with "status":"-1","error":"This IP address has been banned".
  • comment. Required. The revised text for the comment. If there are no changes to the comment, pass the existing comment, or it will be overwritten.
  • subject. Required only if comment is on a member profile. Comments on media do not have subjects. The revised subject for the comment. If there are no changes to the subject, pass the existing comment, or it will be overwritten.

JSON Payload

  • comments. A nested object that contains the following for the revised comment.
body The text for the member's comment.
createdAt A nested object stating when the media was created in the following format. All times are returned as Greenwich Mean Time (GMT).

dayOfMonth month hour:minute:second GMT

This would appear as follows: "createdAt":"22 Feb 2008 02:07:19 GMT"

fromUserId The member who posted the comment.
commentId The unique id for the comment.
pathToPhoto The path to the photo displayed in the list.
pathToIcon The path to the stored thumbnail for this media.
updatedByUserId The numeric Id of the member who made the update.
updateAt A nested object stating when the media was created in the following format. All times are returned as Greenwich Mean Time (GMT).

dayOfMonth month hour:minute:second GMT

This would appear as follows: "updatedAt":"22 Feb 2008 02:07:19 GMT"

userId The numeric id for the member who posted the comment.
username The username of the member who uploaded the comment.

List of KickApps API Calls


Note: Occasionally (and without advanced warning) we modify our API calls by adding new parameters in the response payload. Please keep this in mind when designing your strategy for parsing our responses.