You are here

protected function Twitter::create_url in Twitter 6.5

Same name and namespace in other branches
  1. 6.3 twitter.lib.php \Twitter::create_url()
  2. 7.6 twitter.lib.php \Twitter::create_url()
  3. 7.3 twitter.lib.php \Twitter::create_url()
  4. 7.5 twitter.lib.php \Twitter::create_url()

Creates an API endpoint URL.

Parameters

string $path: The path of the endpoint.

string $format: The format of the endpoint to be appended at the end of the path.

Return value

The complete path to the endpoint.

1 call to Twitter::create_url()
Twitter::call in ./twitter.lib.php
Calls a Twitter API endpoint.

File

./twitter.lib.php, line 212
Integration layer to communicate with the Twitter REST API 1.1. https://dev.twitter.com/docs/api/1.1

Class

Twitter
Primary Twitter API implementation class

Code

protected function create_url($path, $format = '.json') {
  $url = variable_get('twitter_api', TWITTER_API) . '/1.1/' . $path . $format;
  return $url;
}