PHP Classes

Twitter how to Post Image

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  PHP OAuth Tutorial on...  >  All threads  >  Twitter how to Post Image  >  (Un) Subscribe thread alerts  
Subject:Twitter how to Post Image
Summary:Twitter how to Post Image
Messages:2
Author:developer
Date:2014-10-01 15:05:44
 

  1. Twitter how to Post Image   Reply   Report abuse  
Picture of developer developer - 2014-10-01 15:05:44
Twitter how to Post Image example $client->CallAPI(
"https://api.twitter.com/1.1/statuses/update_with_media.json",
'POST', array(
'status'=>'This is a test tweet to evaluate the PHP OAuth API support to upload image files sent at '.strftime("%Y-%m-%d %H:%M:%S"),
'media[]'=>'php-oauth.png'
),array(
'FailOnAccessError'=>true,
'Files'=>array(
'media[]'=>array( 'ContentType'=>'image/png',
)

)
), $user);

  2. Re: Twitter how to Post Image   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-10-01 20:53:22 - In reply to message 1 from developer
Is this a question?