public function getLoginUrl($scopes = array('basic'))
    {
        if (is_array($scopes) && count(array_intersect($scopes, $this->_scopes)) === count($scopes)) {
            return self::API_OAUTH_URL . '?client_id=' . $this->getApiKey() . '&redirect_uri=' . urlencode($this->getApiCallback()) . '&scope=' . implode('+',
                $scopes) . '&response_type=code';
        }

        throw new InstagramException("Error: getLoginUrl() - The parameter isn't an array or invalid scope permissions used.");
    }
public function getLoginUrl($scopes = array('basic'))
    {
        if (is_array($scopes) && count(array_intersect($scopes, $this->_scopes)) === count($scopes)) {
            return self::API_OAUTH_URL . '?client_id=' . $this->getApiKey() . '&redirect_uri=' . urlencode($this->getApiCallback()) . '&scope=' . implode('+',
                $scopes) . '&response_type=code';
        }

        throw new InstagramException("Error: getLoginUrl() - The parameter isn't an array or invalid scope permissions used.");
    }
public function getLoginUrl ( $ scopes = array ( 'basic' ) ) { if ( is_array ( $ scopes ) && count ( array_intersect ( $ scopes , $ this -> _scopes ) ) === count ( $ scopes ) ) { return self :: API_OAUTH_URL . '?client_id=' . $ this -> getApiKey ( ) . '&redirect_uri=' . urlencode ( $ this -> getApiCallback ( ) ) . '&scope=' . implode ( '+' , $ scopes ) . '&response_type=code' ; } throw new InstagramException ( "Error: getLoginUrl() - The parameter isn't an array or invalid scope permissions used." ) ; }
Generates the OAuth login URL.

@param string[] $scopes Requesting additional permissions

@return string Instagram OAuth login URL

@throws \MetzWeb\Instagram\InstagramException
Generates the OAuth login URL .