You are here

protected function Twitter::create_url in Twitter 7.3

Same name and namespace in other branches
  1. 6.5 twitter.lib.php \Twitter::create_url()
  2. 6.3 twitter.lib.php \Twitter::create_url()
  3. 7.6 twitter.lib.php \Twitter::create_url()
  4. 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

Twitter
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;
}