You are here

function TwitterOAuth::get in jQuery social stream 8.2

Same name and namespace in other branches
  1. 8 src/Twitter/TwitterOAuth.php \Drupal\jquery_social_stream\Twitter\TwitterOAuth::get()

GET wrapper for oAuthRequest.

File

src/Twitter/TwitterOAuth.php, line 152

Class

TwitterOAuth
Twitter OAuth class

Namespace

Drupal\jquery_social_stream\Twitter

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;
}