http() public method

Make an HTTP request
public http ( $url, $method, $postfields = NULL, $multi = false ) : string
return string API results
Esempio n. 1
0
 public function http($url, $method, $params = NULL, $multi = false)
 {
     $params = array_merge($params, array('access_token' => $this->token->key));
     $response = parent::http($url, $method, $params, $multi);
     if ($this->format === 'json' && $this->decode_json) {
         $response = json_decode($response, true);
     }
     return $response;
 }