예제 #1
0
 /**
  * Get rate limit remaining from the headers
  *
  * @access public
  * @return mixed
  */
 public function getRateLimitRemaining()
 {
     $header = $this->request->getHeaders();
     return isset($header['X-Ratelimit-Remaining']) ? $header['X-Ratelimit-Remaining'] : 'unknown';
 }
 /**
  * Set the access_token for further requests
  *
  * @access public
  * @param  string   $access_token
  * @return void
  */
 public function setOAuthToken($access_token)
 {
     $this->request->setAccessToken($access_token);
 }