A comment can be deleted only if the authenticated user either created the specified comment, or uploaded the photo the comment is on.
Description
This method deletes the specified comment. BETA
URL
http://api.twitpic.com/2/comments/delete.format
Available Formats
xml, json
HTTP Method
POST
Requires Authentication
True
Header Example
OAuth realm="http://api.twitter.com/", oauth_consumer_key="GDdmIQH6jhtmLUypg82g", oauth_signature_method="HMAC-SHA1", oauth_token="819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw", oauth_timestamp="1272325550", oauth_nonce="oElnnMTQIZvqvlfXM56aBLAf5noGD0AQR3Fmi7Q6Y", oauth_version="1.0", oauth_signature="U1obTfE7Rs9J1kafTGwufLJdspo%3D"
X-Auth-Service-Provider (Required)
https://api.twitter.com/1/account/verify_credentials.json
Parameters
- key (Required): The API key of the calling application/website
- comment_id (Required): The ID of the comment to delete
Responses
If HTTP status 200 is returned, you can assume the comment was deleted.
Example CURL Command
curl -v -H 'X-Auth-Service-Provider: https://api.twitter.com/1/account/verify_credentials.json' -H 'X-Verify-Credentials-Authorization: OAuth realm="http://api.twitter.com/", oauth_consumer_key="GDdmIQH6jhtmLUypg82g", oauth_signature_method="HMAC-SHA1", oauth_token="819797-Jxq8aYUDRmykzVKrgoLhXSq67TEa5ruc4GJC2rWimw", oauth_timestamp="1272325550", oauth_nonce="oElnnMTQIZvqvlfXM56aBLAf5noGD0AQR3Fmi7Q6Y", oauth_version="1.0", oauth_signature="U1obTfE7Rs9J1kafTGwufLJdspo%3D"' -F "key=098f6bcd4621d373cade4e832627b4f6" -F "key=my_app_key" -F "comment_id=1234" http://api.twitpic.com/2/comments/delete.json
