Exemple #1
0
 /**
  * Gets the authenticate url.
  *
  * @param \Widop\Twitter\OAuth\Token\OAuthToken $requestToken The request token.
  *
  * @return string The authenticate url.
  */
 public function getAuthenticateUrl(OAuthToken $requestToken)
 {
     return sprintf('%s/oauth/authenticate?oauth_token=%s', $this->getUrl(), $requestToken->getKey());
 }
 public function testSerialize()
 {
     $token = unserialize(serialize($this->token));
     $this->assertSame($this->token->getKey(), $token->getKey());
     $this->assertSame($this->token->getSecret(), $token->getSecret());
 }