themattharris / tmhOAuth

An OAuth 1.0A library written in PHP
Apache License 2.0
855 stars 335 forks source link

How to delete tweet #157

Closed knowledgecorner closed 11 years ago

knowledgecorner commented 11 years ago

hi im using your "tmhOAuth" image tweets sucessfully updated by using following code " $img = './'.$img; $code = $tmhOAuth->request('POST', 'https://api.twitter.com/1.1/statuses/update_with_media.json', array( 'media[]' => "@{$img}", 'status' => "$txt" ), true, true) ; "

im getting tweet id also but i want how to delete tweet and which method used for delete tweet. Thanks in advance

themattharris commented 11 years ago

hey you'll want the https://api.twitter.com/1.1/statuses/destroy/:id.json endpoint documented on dev.twitter.com here: https://dev.twitter.com/docs/api/1.1/post/statuses/destroy/%3Aid

hope that helps