You are here

function TwitterOAuth::get in Tweet Feed 6

Same name and namespace in other branches
  1. 7.3 inc/twitter-oauth.inc \TwitterOAuth::get()
  2. 7 inc/twitter-oauth.inc \TwitterOAuth::get()
  3. 7.2 inc/twitter-oauth.inc \TwitterOAuth::get()

GET wrapper for oAuthRequest.

File

inc/twitter-oauth.inc, line 141

Class

TwitterOAuth
Twitter OAuth class

Code

function get($url, $parameters = array()) {
  $response = $this
    ->oAuthRequest($url, 'GET', $parameters);
  if ($this->format === 'json' && $this->decode_json) {
    return json_decode($response);
  }
  return $response;
}