Guzzlehttp Http Errors Get

[Solved] Guzzlehttp Http Errors Get | Php - Code Explorer | yomemimo.com
Question : guzzlehttp http_errors get

Answered by : akbarali

public function getTracking(string $search) { try { $data = $this->client->get($this->tracking_request_url.$search.'/history_items'); } catch (\Exception $exception) { $data = null; } if (is_null($data)) { return $this->page_container->setPage(new TrackingPageViewModel()); } else { return $this->page_container->setPage(new TrackingPageViewModel(json_decode($data->getBody()->getContents(), true))); } }

Source : | Last Update : Wed, 18 May 22

Answers related to guzzlehttp http errors get

Code Explorer Popular Question For Php