You are here

function TwittersOAuth::get in jQuery social stream 7

Same name and namespace in other branches
  1. 7.2 jquery_social_stream.js.inc \TwittersOAuth::get()

GET wrapper for oAuthRequest.

File

./jquery_social_stream.js.inc, line 224
JS callbacks.

Class

TwittersOAuth
Twitter sOAuth 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;
}