Have updated functions in EpiOAuth.php and EpiTwitter.php in line with the suggestion at http://stackoverflow.com/a/7309781.
Have also added a new test (although I have not been able to test this as yet...)
Change to httpPost to add urldecode to status parameter - needed for …
EpiTwitter - added $mediaUrl constant, and updated getApiUrl() to cop…
…e with update_status_with_media call
Added a test for Post Status with Media (untested at moment)
It doesn`t work
Is this correct ?
It seems to be correct if you want to use this to update a twitter status with media
Yes but I mean the code syntax, I changed it to
$params['request']['status'] = urldecode($params['request']['status']);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params['request']);
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->buildHttpQueryRaw($params['request']));
Argh - you are right - I did use that syntax in my own code - I have updated it
pacomitico - are you sure that you incorporated all of the required changes? These changes have been operating without any problems on my website for the past 3 months
Added curly brackets to correct syntax
pacomitico - it could have been the typo in EpiOAuth.php which stopped it from working - can you please check?
See the minor change to EipOAuth.php -
This corrects a typo - it adds some curly braces.
You say 'It doesn't work" - but that is not exactly helpful - in what way - do you get an error message, or do the posts just do nothing?
Email me via my website www.rwapservices.co.uk (so I can have your email address) and I can then send you a zip file - you will need to compare your own code to see what error you may have made !!
Switched to v1.1 of API - old v1 has been de-activated
Updated to take account of changes to v1.1 API
As suggested by aaronwaldon - changes implemented as the search and media upload endpoints are no longer a separate URI (https://dev.twitter.com/docs/api/1.1).