public function Twitter::call in Twitter 6.5
Same name and namespace in other branches
- 6.3 twitter.lib.php \Twitter::call()
- 7.6 twitter.lib.php \Twitter::call()
- 7.3 twitter.lib.php \Twitter::call()
- 7.5 twitter.lib.php \Twitter::call()
Calls a Twitter API endpoint.
35 calls to Twitter::call()
- Twitter::account_profile_banner in ./
twitter.lib.php - Returns a map of the available size variations of the specified user's profile banner.
- Twitter::account_remove_profile_banner in ./
twitter.lib.php - Removes the uploaded profile banner for the authenticating user.
- Twitter::account_settings in ./
twitter.lib.php - Returns settings (including current trend, geo and sleep time information) for the authenticating user.
- Twitter::account_settings_update in ./
twitter.lib.php - Updates the authenticating user's settings.
- Twitter::account_update_delivery_device in ./
twitter.lib.php - Sets which device Twitter delivers updates to for the authenticating user.
File
- ./
twitter.lib.php, line 1239 - Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1
Class
- Primary Twitter API implementation class
Code
public function call($path, $params = array(), $method = 'GET') {
$url = $this
->create_url($path);
try {
$response = $this
->auth_request($url, $params, $method);
} catch (TwitterException $e) {
watchdog('twitter', '!message', array(
'!message' => $e
->__toString(),
), WATCHDOG_ERROR);
return FALSE;
}
if (!$response) {
return FALSE;
}
return $this
->parse_response($response);
}