|  | 
|  | __construct ($args) | 
|  | Contructor for oauth_helper. 
 | 
|  | 
|  | get ($url, $params=array(), $token='', $secret='') | 
|  | shortcut to start http get request 
 | 
|  | 
|  | get_access_token ($token, $secret, $verifier='') | 
|  | Request oauth access token from server. 
 | 
|  | 
|  | get_nonce () | 
|  | Generate nonce for oauth request. 
 | 
|  | 
|  | get_signable_parameters ($params) | 
|  | Build parameters list: oauth_consumer_key="0685bd9184jfhq22", oauth_nonce="4572616e48616d6d65724c61686176", oauth_token="ad180jjd733klru7", oauth_signature_method="HMAC-SHA1", oauth_signature="wOJIO9A2W5mFwDgiDvZbTSMK%2FPY%3D", oauth_timestamp="137131200", oauth_version="1.0" oauth_verifier="1.0". 
 | 
|  | 
|  | get_timestamp () | 
|  | Generate timestamp. 
 | 
|  | 
|  | parse_result ($str) | 
|  | A method to parse oauth response to get oauth_token and oauth_token_secret. 
 | 
|  | 
|  | post ($url, $params=array(), $token='', $secret='') | 
|  | shortcut to start http post request 
 | 
|  | 
|  | prepare_oauth_parameters ($url, $params, $http_method='POST') | 
|  | Initilize oauth request parameters, including: oauth_consumer_key="0685bd9184jfhq22", oauth_token="ad180jjd733klru7", oauth_signature_method="HMAC-SHA1", oauth_signature="wOJIO9A2W5mFwDgiDvZbTSMK%2FPY%3D", oauth_timestamp="137131200", oauth_nonce="4572616e48616d6d65724c61686176", oauth_version="1.0" To access protected resources, oauth_token should be defined. 
 | 
|  | 
|  | request ($method, $url, $params=array(), $token='', $secret='') | 
|  | Request oauth protected resources. 
 | 
|  | 
|  | request_token () | 
|  | Request token for authentication This is the first step to use OAuth, it will return oauth_token and oauth_token_secret. 
 | 
|  | 
|  | set_access_token ($token, $secret) | 
|  | Set oauth access token for oauth request. 
 | 
|  | 
|  | set_nonce ($str) | 
|  | Set nonce. 
 | 
|  | 
|  | set_timestamp ($time) | 
|  | Set timestamp. 
 | 
|  | 
|  | setup_oauth_http_header ($params) | 
|  | 
|  | setup_oauth_http_options ($options) | 
|  | Sets the options for the next curl request. 
 | 
|  | 
|  | sign ($http_method, $url, $params, $secret) | 
|  | Create signature for oauth request. 
 | 
|  | 
      
        
          | oauth_helper::get_signable_parameters | ( |  | $params | ) |  | 
      
 
Build parameters list: oauth_consumer_key="0685bd9184jfhq22", oauth_nonce="4572616e48616d6d65724c61686176", oauth_token="ad180jjd733klru7", oauth_signature_method="HMAC-SHA1", oauth_signature="wOJIO9A2W5mFwDgiDvZbTSMK%2FPY%3D", oauth_timestamp="137131200", oauth_version="1.0" oauth_verifier="1.0". 
- Parameters
- 
  
  
- Return values
- 
  
  
 
 
      
        
          | oauth_helper::prepare_oauth_parameters | ( |  | $url, | 
        
          |  |  |  | $params, | 
        
          |  |  |  | $http_method = 'POST' ) | 
      
 
Initilize oauth request parameters, including: oauth_consumer_key="0685bd9184jfhq22", oauth_token="ad180jjd733klru7", oauth_signature_method="HMAC-SHA1", oauth_signature="wOJIO9A2W5mFwDgiDvZbTSMK%2FPY%3D", oauth_timestamp="137131200", oauth_nonce="4572616e48616d6d65724c61686176", oauth_version="1.0" To access protected resources, oauth_token should be defined. 
- Parameters
- 
  
    | string | $url |  |  | string | $token |  |  | string | $http_method |  |  
 
- Return values
-