سفارش
<?php
$client = new Client();
$headers = [
'Authorization' => 'Bearer eyJ0eXAiOi....'
];
$request = new Request('GET', 'https://api.amadast.com/external-api/v1.0/locations', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();