in src/FacebookAds/ApiRequest.php [179:195]
public function execute() {
$url_path = '/'.$this->id.$this->endpoint;
$updated_params = $this->params;
if (!empty($this->fields)) {
$fields = implode(',', $this->fields);
$updated_params['fields'] = $fields;
}
$response = $this->api->call(
$url_path, $this->method, $updated_params, $this->file_params);
if ($this->api_type === "EDGE" && $this->method === "GET") {
return new Cursor($response, $this->return_prototype, $this->api);
} else if ($this->method === "DELETE") {
return $response;
} else {
return $this->createObject($response->getContent());
}
}