You are here

protected function Twitter::auth_request in Twitter 6.3

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

Perform an authentication required request.

1 call to Twitter::auth_request()
Twitter::call in ./twitter.lib.php
Calls a twitter api resource
1 method overrides Twitter::auth_request()
TwitterOAuth::auth_request in ./twitter.lib.php
Perform an authentication required request.

File

./twitter.lib.php, line 267
Classes to implement the full Twitter API

Class

Twitter
Primary Twitter API implementation class Supports the full REST API for twitter.

Code

protected function auth_request($path, $params = array(), $method = 'GET') {
  if (empty($this->username) || empty($this->password)) {
    return false;
  }
  return $this
    ->request($path, $params, $method, TRUE);
}