TijsVerkoyen\Twitter\Twitter::setOAuthToken PHP Method

setOAuthToken() public method

Set the oAuth-token
public setOAuthToken ( string $token )
$token string The token to use.
    public function setOAuthToken($token)
    {
        $this->oAuthToken = (string) $token;
    }

Usage Example

Beispiel #1
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->twitter = new Twitter(CONSUMER_KEY, CONSUMER_SECRET);
     $this->twitter->setOAuthToken(OAUTH_TOKEN);
     $this->twitter->setOAuthTokenSecret(OAUTH_TOKEN_SECRET);
 }
All Usage Examples Of TijsVerkoyen\Twitter\Twitter::setOAuthToken
Twitter