I'm using Twitter OAuth to grab the most recent direct message from my account. I can get the tweet just fine and can get the image url with no trouble. Can't download the image once I have the url. Any suggestions as to how to do that?
if(strlen($client->client_id) == 0
|| strlen($client->client_secret) == 0)
die('Please go to Twitter Apps page https://dev.twitter.com/apps/new , '.
'create an application, and in the line '.$application_line.
' set the client_id to Consumer key and client_secret with Consumer secret. '.
'The Callback URL must be '.$client->redirect_uri.' If you want to post to '.
'the user timeline, make sure the application you create has write permissions');