protected function TwitterOAuth::create_oauth_url in Twitter 6.3
Same name and namespace in other branches
- 7.3 twitter.lib.php \TwitterOAuth::create_oauth_url()
4 calls to TwitterOAuth::create_oauth_url()
File
- ./
twitter.lib.php, line 363 - Classes to implement the full Twitter API
Class
- TwitterOAuth
- A class to provide OAuth enabled access to the twitter API
Code
protected function create_oauth_url($path, $format = NULL) {
if (is_null($format)) {
$format = $this->format;
}
$conf = TwitterConf::instance();
$url = 'http://' . $conf
->get('api') . '/' . $path;
if (!empty($format)) {
$url .= '.' . $this->format;
}
return $url;
}