You are here

function TwitterOAuth::delete in jQuery social stream 8

Same name and namespace in other branches
  1. 8.2 src/Twitter/TwitterOAuth.php \Drupal\jquery_social_stream\Twitter\TwitterOAuth::delete()

DELETE wrapper for oAuthReqeust.

File

src/Twitter/TwitterOAuth.php, line 174

Class

TwitterOAuth
Twitter OAuth class

Namespace

Drupal\jquery_social_stream\Twitter

Code

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