You are here

function TwitterOAuth::post 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::post()

POST wrapper for oAuthRequest.

File

src/Twitter/TwitterOAuth.php, line 163

Class

TwitterOAuth
Twitter OAuth class

Namespace

Drupal\jquery_social_stream\Twitter

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