API Documentation

Feeling RESTful?

API v2 » event/remove (POST w/ OAuth Echo)

Description

This method removes a photo from the specified event owned by the authenticated user. BETA

URL

http://api.twitpic.com/2/event/remove

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
  • event_id (Required): The unique ID of the event (not the short ID)
  • media_id (Required): The unique ID of the photo (not the short ID)

Responses

If HTTP status 200 is returned, you can assume the photo was removed from the event.

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 "media_id=155979" -F "event_id=4321" http://api.twitpic.com/2/event/remove