Hello jacob petrie,
Here is my code
$tmhOAuth = array( ‘consumer_key’ => CONSUMER_KEY, ‘consumer_secret’ => CONSUMER_SECRET, ‘user_token’ => OAUTH_TOKEN, ‘user_secret’ => OAUTH_TOKEN_SECRET, ‘curl_ssl_verifypeer’ => false );
$tmhOAuth = new tmhOAuth( $tmhOAuth );
$photo_path = ‘/opt/lampp/htdocs/RnD/socialInbox/uploads/1932198_664701136923863_1357889453_n.jpg’;
$photo_name = basename( $photo_path );
$photo_type = mime_content_type( $photo_path );
$code = $tmhOAuth->request(‘POST’, $tmhOAuth->url( ‘1.1/statuses/update_with_media’ ), array(
‘status’ => ‘@USERNAME TEST CONTENT’,‘in_reply_to_status_id’ => ‘XXXXXXXXXXXXXXXXXX’,
‘media[]’ => “@” . $photo_path . “;type={$photo_type};filename={$photo_name}”,
), true, true
);
Please let me know what I am doing wrong?
Thanks