You are here

function TwittersOAuth::post in jQuery social stream 7

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

POST wrapper for oAuthRequest.

File

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

Class

TwittersOAuth
Twitter sOAuth class

Code

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