function twitter_connect in Twitter 6.4
Same name and namespace in other branches
- 6.5 twitter.inc \twitter_connect()
- 6.3 twitter.inc \twitter_connect()
- 7.6 twitter.inc \twitter_connect()
- 7.3 twitter.inc \twitter_connect()
- 7.4 twitter.inc \twitter_connect()
- 7.5 twitter.inc \twitter_connect()
Connect to the API.
2 calls to twitter_connect()
- twitter_fetch_user_timeline in ./
twitter.inc - Fetches a user's timeline
- twitter_set_status in ./
twitter.inc - Post a message to twitter
File
- ./
twitter.inc, line 14
Code
function twitter_connect($account) {
$auth = $account
->get_auth();
if ($auth['oauth_token'] && $auth['oauth_token_secret']) {
return new Twitter6(variable_get('twitter_consumer_key', ''), variable_get('twitter_consumer_secret', ''), $auth['oauth_token'], $auth['oauth_token_secret']);
}
else {
return FALSE;
}
}