You are here

protected function Twitter::create_url in Twitter 6.3

Same name and namespace in other branches
  1. 6.5 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()
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

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;
  }
  $conf = TwitterConf::instance();
  $url = 'http://' . $conf
    ->get('api') . '/1/' . $path;
  if (!empty($format)) {
    $url .= '.' . $this->format;
  }
  return $url;
}