function TwitterOAuth::post in jQuery social stream 8
Same name and namespace in other branches
- 8.2 src/Twitter/TwitterOAuth.php \Drupal\jquery_social_stream\Twitter\TwitterOAuth::post()
POST wrapper for oAuthRequest.
File
- src/
Twitter/ TwitterOAuth.php, line 163
Class
- TwitterOAuth
- Twitter OAuth class
Namespace
Drupal\jquery_social_stream\TwitterCode
function post($url, $parameters = array()) {
$response = $this
->oAuthRequest($url, 'POST', $parameters);
if ($this->format === 'json' && $this->decode_json) {
return json_decode($response);
}
return $response;
}