protected function Twitter::create_url in Twitter 7.3
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::create_url()
- 6.3 twitter.lib.php \Twitter::create_url()
- 7.6 twitter.lib.php \Twitter::create_url()
- 7.5 twitter.lib.php \Twitter::create_url()
1 call to Twitter::create_url()
- Twitter::call in ./
twitter.lib.php - Calls a twitter api resource
File
- ./
twitter.lib.php, line 265 - Classes to implement the full Twitter API
Class
- Primary Twitter API implementation class Supports the full REST API for twitter.
Code
protected function create_url($path, $format = NULL) {
if (is_null($format)) {
$format = $this->format;
}
$url = variable_get('twitter_api', TWITTER_API) . '/1/' . $path;
if (!empty($format)) {
$url .= '.' . $this->format;
}
return $url;
}