http() 공개 메소드

Make an HTTP request
public http ( $url, $method, $postfields = NULL, $multi = false ) : string
리턴 string API results
예제 #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;
 }