Ejemplo n.º 1
0
 public function __construct($client_id)
 {
     //argument test
     Eden_Instagram_Error::i()->argument(1, 'string');
     //Argument 1 must be a string
     $this->_client_id = $client_id;
 }
Ejemplo n.º 2
0
 public function __construct($access_token)
 {
     //argument test
     Eden_Instagram_Error::i()->argument(1, 'string');
     //Argument 1 must be a string
     $this->_access_token = $access_token;
 }
Ejemplo n.º 3
0
 /**
  * Returns the access token 
  * 
  * @param string code value provided post-redirect
  * @param string call back URI provided in the getLoginUrl request
  * @return string an access token for the user
  */
 public function getAccessToken($code, $redirect, $grant_type = 'authorization_code')
 {
     //Argument test
     Eden_Instagram_Error::i()->argument(1, 'string')->argument(2, 'string')->argument(3, 'string');
     //Argument 3 must be a string
     return $this->_post(self::ACCESS_URL, array('client_id' => $this->_client_id, 'client_secret' => $this->_client_secret, 'grant_type' => $grant_type, 'redirect_uri' => $redirect, 'code' => $code));
 }
Ejemplo n.º 4
0
 public function __construct($client_id, $client_secret)
 {
     //argument test
     Eden_Instagram_Error::i()->argument(1, 'string')->argument(2, 'string');
     //Argument 2 must be a string
     $this->_client_id = $client_id;
     $this->_client_secret = $client_secret;
 }
Ejemplo n.º 5
0
 /**
  * Returns Instagram Geographies Instance
  *
  * @param *string 
  * @return Eden_Instagram_Geographies
  */
 public function geographies($client_id)
 {
     //Argument test
     Eden_Instagram_Error::i()->argument(1, 'string');
     //Argument 1 must be a string
     return Eden_Instagram_Geographies::i($client_id);
 }