/** * Execute api call * * @param null $url * @param string $method * @param array|null $data * * @throws \Pecee\Http\Rest\RestException * @return static */ public function api($url = null, $method = RestBase::METHOD_GET, array $data = array()) { return $this->service->api($url, $method, $data); }