You are here

public function Twitter::__construct in Twitter 7.3

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

Constructor for the Twitter class

1 method overrides Twitter::__construct()
TwitterOAuth::__construct in ./twitter.lib.php
Constructor for the Twitter class

File

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

Class

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

Code

public function __construct($username = NULL, $password = NULL) {
  if (!empty($username) && !empty($password)) {
    $this
      ->set_auth($username, $password);
  }
}