thanks for the reply, this is the code Im using: (the consumer keys and such are pulled from the database first:
$message = "$tweet_message";
// Load the tmhOAuth library
include 'twitter/tmhOAuth.php';
// Create an OAuth connection to the Twitter API
$connection = new tmhOAuth(array(
'consumer_key' => $consumer_key,
'consumer_secret' => $consumer_secret,
'user_token' => $user_token,
'user_secret' => $user_secret
));
$code = $connection->request('POST',
$connection->url('1.1/statuses/update'),
array('status' => "$message" ));
// A response code of 200 is a success
if ($code == 200) {
print "Tweet sent";
} else {
print "Error: $code";
}
and it uses the tmhOAuth library: http://root.medlington.co.uk/temp/tmhOAuth.php
When I use it with one set of keys it works fine but when I try to use the ones I have created that are labled API keys it doesnt?