Hi,
I'm trying to update an account status with the Abraham's PHP Library,
but I'm getting the following exception message:
Bad request / Your browser sent a request that this server could not
understand.
I've already authorized my application to connect with my test account
and I saved the authentication data in constants. I'm using the code
bellow to do the update:
try {
$twitter = new EpiTwitter(Config::TWITTER_APP_TOKEN,
Config::TWITTER_APP_SECRET, Config::TWITTER_OAUTH_TOKEN,
Config::TWITTER_OAUTH_SECRET);
$return = $twitter->post('/statuses/update.json', array ( 'status'
=> 'TEST' ));
echo $return->response;
} catch (Exception $e) {
echo $e->getMessage();
}
API methods that uses 'get' instead of 'post' (e.g. account/
verify_credentials) works without problem.
Thanks in advance.
Straube