You are here

public function Twitter::__construct in Twitter 6.3

Same name and namespace in other branches
  1. 6.5 twitter.lib.php \Twitter::__construct()
  2. 7.6 twitter.lib.php \Twitter::__construct()
  3. 7.3 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 109
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) {
  $this
    ->set_auth($username, $password);
}