protected function TwitterOAuth::create_oauth_url in Twitter 7.3
Same name and namespace in other branches
- 6.3 twitter.lib.php \TwitterOAuth::create_oauth_url()
Builds a full URL to perform an OAuth operation
Parameters
$path: string the path of the operation
$format: string a valid format
Return value
string full URL
4 calls to TwitterOAuth::create_oauth_url()
File
- ./
twitter.lib.php, line 306 - 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;
}
$url = variable_get('twitter_api', TWITTER_API) . '/' . $path;
if (!empty($format)) {
$url .= '.' . $this->format;
}
return $url;
}