function TwitterOAuth::get in jQuery social stream 8
Same name and namespace in other branches
- 8.2 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\TwitterCode
function get($url, $parameters = array()) {
$response = $this
->oAuthRequest($url, 'GET', $parameters);
if ($this->format === 'json' && $this->decode_json) {
return json_decode($response);
}
return $response;
}