public function getRequestToken()
    {
        // Nullify any request token we already have
        $this->storage->set(null, 'request_token');
        $url = API::API_URL . self::REQUEST_TOKEN_METHOD;
        $response = $this->fetch('POST', $url, '');
        $token = $this->parseTokenString($response['body']);
        $this->storage->set($token, 'request_token');
    }
public function getRequestToken()
    {
        // Nullify any request token we already have
        $this->storage->set(null, 'request_token');
        $url = API::API_URL . self::REQUEST_TOKEN_METHOD;
        $response = $this->fetch('POST', $url, '');
        $token = $this->parseTokenString($response['body']);
        $this->storage->set($token, 'request_token');
    }
public function getRequestToken ( ) { // Nullify any request token we already have $ this -> storage -> set ( null , 'request_token' ) ; $ url = API :: API_URL . self :: REQUEST_TOKEN_METHOD ; $ response = $ this -> fetch ( 'POST' , $ url , '' ) ; $ token = $ this -> parseTokenString ( $ response [ 'body' ] ) ; $ this -> storage -> set ( $ token , 'request_token' ) ; }
Acquire an unauthorised request token
@link http://tools.ietf.org/html/rfc5849#section-2.1
@return void
Acquire an unauthorised request token