original_string: public function requestOAuthToken(OAuthTokenRequest $request, $auto_set_request_token = false)
      {
          $rest = new REST(array(
              'server' => $this->oauth_token_url,
              'debug_mode' => $this->debug_mode
          ));
  
          if ($this->oauth_token_url != self::OAUTH_TOKEN_URL) {
              $this->disableCertificateCheck($rest);
          }
  
          $response = $rest->post('', $request->toParams());
  
          $this->checkResponse($response);
          $this->checkOAuthTokenResponse($response);
  
          // populate object from response
          $token = new OAuthToken($response);
  
          if ($auto_set_request_token) {
              $this->rest = $this->createREST($token);
          }
  
          return $token;
      }
code: public function requestOAuthToken(OAuthTokenRequest $request, $auto_set_request_token = false)
      {
          $rest = new REST(array(
              'server' => $this->oauth_token_url,
              'debug_mode' => $this->debug_mode
          ));
  
          if ($this->oauth_token_url != self::OAUTH_TOKEN_URL) {
              $this->disableCertificateCheck($rest);
          }
  
          $response = $rest->post('', $request->toParams());
  
          $this->checkResponse($response);
          $this->checkOAuthTokenResponse($response);
  
          // populate object from response
          $token = new OAuthToken($response);
  
          if ($auto_set_request_token) {
              $this->rest = $this->createREST($token);
          }
  
          return $token;
      }
code_tokens: public function requestOAuthToken ( OAuthTokenRequest $ request , $ auto_set_request_token = false ) { $ rest = new REST ( array ( 'server' => $ this -> oauth_token_url , 'debug_mode' => $ this -> debug_mode ) ) ; if ( $ this -> oauth_token_url != self :: OAUTH_TOKEN_URL ) { $ this -> disableCertificateCheck ( $ rest ) ; } $ response = $ rest -> post ( '' , $ request -> toParams ( ) ) ; $ this -> checkResponse ( $ response ) ; $ this -> checkOAuthTokenResponse ( $ response ) ; // populate object from response $ token = new OAuthToken ( $ response ) ; if ( $ auto_set_request_token ) { $ this -> rest = $ this -> createREST ( $ token ) ; } return $ token ; }
docstring: Performs an OAuth request and returns the OAuthToken object for authorizing
  an API App, and will automatically set the access token for
  making authenticated requests with this client.
  
  @param OAuthTokenRequest $request
  @param boolean $auto_set_request_token true if the token should be
  immediately applied to this client
  @return OAuthToken object containing OAuth token details
  @throws BaseException
docstring_tokens: Performs an OAuth request and returns the OAuthToken object for authorizing an API App and will automatically set the access token for making authenticated requests with this client .