/** * Returns the oauth consumer class * * @return Eden_Oauth_Consumer */ public function consumer($url, $key, $secret) { return Eden_Oauth_Consumer::i($url, $key, $secret); }
if(!class_exists('Eden_Oauth')){class Eden_Oauth extends Eden_Class{public static function i(){return self::_getSingleton(__CLASS__);}public function consumer($url,$key,$secret){return Eden_Oauth_Consumer::i($url,$key,$secret);}public function getHmacGetAccessToken($url,$key,$secret,$token,$tokenSecret,array $query=array(),$realm=NULL,$verifier=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(4,'string')->argument(5,'string')->argument(7,'string','null')->argument(8,'string','null');return $this->consumer($url,$key,$secret)->setMethodToGet()->setSignatureToHmacSha1()->when($realm)->setRealm($realm)->endWhen()->when($verifier)->setVerifier($verifier)->endWhen()->setRequestToken($token,$tokenSecret)->getToken($query);}public function getHmacGetAuthorizationAccessToken($url,$key,$secret,$token,$tokenSecret,array $query=array(),$realm=NULL,$verifier=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(4,'string')->argument(5,'string')->argument(7,'string','null')->argument(8,'string','null');return $this->consumer($url,$key,$secret)->useAuthorization()->setMethodToGet()->setSignatureToHmacSha1()->when($realm)->setRealm($realm)->endWhen()->when($verifier)->setVerifier($verifier)->endWhen()->setRequestToken($token,$tokenSecret)->getToken($query);}public function getHmacGetAuthorizationRequestToken($url,$key,$secret,array $query=array(),$realm=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(5,'string','null');return $this->consumer($url,$key,$secret)->useAuthorization()->setMethodToGet()->setSignatureToHmacSha1()->when($realm)->setRealm($realm)->endWhen()->getToken($query);}public function getHmacGetRequestToken($url,$key,$secret,array $query=array(),$realm=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(5,'string','null');return $this->consumer($url,$key,$secret)->setMethodToGet()->setSignatureToHmacSha1()->when($realm)->setRealm($realm)->endWhen()->getToken($query);}public function getHmacPostAccessToken($url,$key,$secret,$token,$tokenSecret,array $query=array(),$realm=NULL,$verifier=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(4,'string')->argument(5,'string')->argument(7,'string','null')->argument(8,'string','null');return $this->consumer($url,$key,$secret)->setMethodToPost()->setSignatureToHmacSha1()->when($realm)->setRealm($realm)->endWhen()->when($verifier)->setVerifier($verifier)->endWhen()->setRequestToken($token,$tokenSecret)->getToken($query);}public function getHmacPostAuthorizationAccessToken($url,$key,$secret,$token,$tokenSecret,array $query=array(),$realm=NULL,$verifier=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(4,'string')->argument(5,'string')->argument(7,'string','null')->argument(8,'string','null');return $this->consumer($url,$key,$secret)->useAuthorization()->setMethodToPost()->setSignatureToHmacSha1()->when($realm)->setRealm($realm)->endWhen()->when($verifier)->setVerifier($verifier)->endWhen()->setRequestToken($token,$tokenSecret)->getToken($query);}public function getHmacPostAuthorizationRequestToken($url,$key,$secret,array $query=array(),$realm=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(5,'string','null');return $this->consumer($url,$key,$secret)->useAuthorization()->setMethodToPost()->setSignatureToHmacSha1()->when($realm)->setRealm($realm)->endWhen()->getToken($query);}public function getHmacPostRequestToken($url,$key,$secret,array $query=array(),$realm=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(5,'string','null');return $this->consumer($url,$key,$secret)->setMethodToPost()->setSignatureToHmacSha1()->when($realm)->setRealm($realm)->endWhen()->getToken($query);}public function getPlainGetAccessToken($url,$key,$secret,$token,$tokenSecret,array $query=array(),$realm=NULL,$verifier=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(4,'string')->argument(5,'string')->argument(7,'string','null')->argument(8,'string','null');return $this->consumer($url,$key,$secret)->setMethodToGet()->setSignatureToPlainText()->when($realm)->setRealm($realm)->endWhen()->when($verifier)->setVerifier($verifier)->endWhen()->setRequestToken($token,$tokenSecret)->getToken($query);}public function getPlainGetAuthorizationAccessToken($url,$key,$secret,$token,$tokenSecret,array $query=array(),$realm=NULL,$verifier=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(4,'string')->argument(5,'string')->argument(7,'string','null')->argument(8,'string','null');return $this->consumer($url,$key,$secret)->useAuthorization()->setMethodToGet()->setSignatureToPlainText()->when($realm)->setRealm($realm)->endWhen()->when($verifier)->setVerifier($verifier)->endWhen()->setRequestToken($token,$tokenSecret)->getToken($query);}public function getPlainGetAuthorizationRequestToken($url,$key,$secret,array $query=array(),$realm=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(5,'string','null');return $this->consumer($url,$key,$secret)->useAuthorization()->setMethodToGet()->setSignatureToPlainText()->when($realm)->setRealm($realm)->endWhen()->getToken($query);}public function getPlainGetRequestToken($url,$key,$secret,array $query=array(),$realm=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(5,'string','null');return $this->consumer($url,$key,$secret)->setMethodToGet()->setSignatureToPlainText()->when($realm)->setRealm($realm)->endWhen()->getToken($query);}public function getPlainPostAccessToken($url,$key,$secret,$token,$tokenSecret,array $query=array(),$realm=NULL,$verifier=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(4,'string')->argument(5,'string')->argument(7,'string','null')->argument(8,'string','null');return $this->consumer($url,$key,$secret)->setMethodToPost()->setSignatureToPlainText()->when($realm)->setRealm($realm)->endWhen()->when($verifier)->setVerifier($verifier)->endWhen()->setRequestToken($token,$tokenSecret)->getToken($query);}public function getPlainPostAuthorizationAccessToken($url,$key,$secret,$token,$tokenSecret,array $query=array(),$realm=NULL,$verifier=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(4,'string')->argument(5,'string')->argument(7,'string','null')->argument(8,'string','null');return $this->consumer($url,$key,$secret)->useAuthorization()->setMethodToPost()->setSignatureToPlainText()->when($realm)->setRealm($realm)->endWhen()->when($verifier)->setVerifier($verifier)->endWhen()->setRequestToken($token,$tokenSecret)->getToken($query);}public function getPlainPostAuthorizationRequestToken($url,$key,$secret,array $query=array(),$realm=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(5,'string','null');return $this->consumer($url,$key,$secret)->useAuthorization()->setMethodToPost()->setSignatureToPlainText()->when($realm)->setRealm($realm)->endWhen()->getToken($query);}public function getPlainPostRequestToken($url,$key,$secret,array $query=array(),$realm=NULL){Eden_Oauth_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'string')->argument(5,'string','null');return $this->consumer($url,$key,$secret)->setMethodToPost()->setSignatureToPlainText()->when($realm)->setRealm($realm)->endWhen()->getToken($query);}public function server(){return Eden_Oauth_Server::i();}}}