You are here

function TwitterOAuth::post in Tweet Feed 7.3

Same name and namespace in other branches
  1. 6 inc/twitter-oauth.inc \TwitterOAuth::post()
  2. 7 inc/twitter-oauth.inc \TwitterOAuth::post()
  3. 7.2 inc/twitter-oauth.inc \TwitterOAuth::post()

POST wrapper for oAuthRequest.

File

inc/twitter-oauth.inc, line 151

Class

TwitterOAuth
Twitter OAuth 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;
}