protected function Twitter::create_url in Twitter 6.3
Same name and namespace in other branches
- 6.5 twitter.lib.php \Twitter::create_url()
- 7.6 twitter.lib.php \Twitter::create_url()
- 7.3 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 331 - 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;
}
$conf = TwitterConf::instance();
$url = 'http://' . $conf
->get('api') . '/1/' . $path;
if (!empty($format)) {
$url .= '.' . $this->format;
}
return $url;
}