You are here

protected function TwitterOAuth::create_oauth_url in Twitter 6.3

Same name and namespace in other branches
  1. 7.3 twitter.lib.php \TwitterOAuth::create_oauth_url()
4 calls to TwitterOAuth::create_oauth_url()
TwitterOAuth::get_access_token in ./twitter.lib.php
TwitterOAuth::get_authenticate_url in ./twitter.lib.php
TwitterOAuth::get_authorize_url in ./twitter.lib.php
TwitterOAuth::get_request_token in ./twitter.lib.php

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