Delete Comment

From KickApps Documentation

Jump to: navigation, search

Delete an existing comment from a member profile or a media item. Your request will look something like the following:

http://api.kickapps.com/rest/deletecomment/{messageId}{/mediaType}/{mediaId/userId}/{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, blog, video, set, emedia, or user. KIT Cloud Social's sample applications use mediaType to check for the Flash player to use.
  • mediaId/userId. The numeric id for the media or member.
  • 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".

JSON Payload

On success, a payload that begins with "status":"1","error":"".

  • comments. Returns the new list of comments for the item, without the deleted comment. Each comment contains the following.
body The text for the member's comment.
subject Optional. A descriptive title for the comment.
createdAt A nested object stating when the media was created in the following format. All times are returned as Gresubenwich Mean Time (GMT).

dayOfMonth month hour:minute:second GMT

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

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"

username The username of the member who uploaded the comment.

List of Kit Cloud Social 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.