Пример #1
0
 /**
  * ask tumblr for an access-key
  *
  * @author Matthias Pfefferle
  * @return OAuthToken
  */
 public function getRequestToken()
 {
     $lRequestToken = OAuthClient::getRequestToken($this->getConsumer(), "http://www.tumblr.com/oauth/request_token", 'GET', array("oauth_callback" => $this->getCallbackUri()));
     // save the request token
     OauthRequestTokenTable::saveToken($lRequestToken, $this->getCommunity());
     return $lRequestToken;
 }
Пример #2
0
 /**
  * ask twitter for an access-key
  *
  * @author Matthias Pfefferle
  * @return OAuthToken
  */
 public function getRequestToken()
 {
     $lRequestToken = OAuthClient::getRequestToken($this->getConsumer(), "http://api.yigg.local/oauth/1/request", 'GET', array("oauth_callback" => $this->getCallbackUri()));
     sfContext::getInstance()->getLogger()->debug(print_r($lRequestToken, true));
     // save the request token
     OauthRequestTokenTable::saveToken($lRequestToken, $this->getCommunity());
     return $lRequestToken;
 }