public function requestRequestToken($data = array())
    {
        $config = new AnConfig(array('data' => $data));
        
        $config->append(array(
            'url' => $this->request_token_url,
            'data' => array('oauth_callback' => $this->getConsumer()->callback_url),
        ));
        
        $request = $this->getRequest($config);
        $response = $request->send();

        if ($response->successful()) {
            $result = $response->parseQuery();
            $_SESSION['oauth_token_secret'] = $result->oauth_token_secret;
        } else {
            $result = '';
        }

        return $result;
    }
public function requestRequestToken($data = array())
    {
        $config = new AnConfig(array('data' => $data));
        
        $config->append(array(
            'url' => $this->request_token_url,
            'data' => array('oauth_callback' => $this->getConsumer()->callback_url),
        ));
        
        $request = $this->getRequest($config);
        $response = $request->send();

        if ($response->successful()) {
            $result = $response->parseQuery();
            $_SESSION['oauth_token_secret'] = $result->oauth_token_secret;
        } else {
            $result = '';
        }

        return $result;
    }
public function requestRequestToken ( $ data = array ( ) ) { $ config = new AnConfig ( array ( 'data' => $ data ) ) ; $ config -> append ( array ( 'url' => $ this -> request_token_url , 'data' => array ( 'oauth_callback' => $ this -> getConsumer ( ) -> callback_url ) , ) ) ; $ request = $ this -> getRequest ( $ config ) ; $ response = $ request -> send ( ) ; if ( $ response -> successful ( ) ) { $ result = $ response -> parseQuery ( ) ; $ _SESSION [ 'oauth_token_secret' ] = $ result -> oauth_token_secret ; } else { $ result = '' ; } return $ result ; }
Request for a request token.

@param array $data

@return string
Request for a request token .