can not retrieve data from ticketevolution api. it gives "GuzzleHttpCommandExceptionCommandException"

i am using laravel and tring to integrate ticket evolution api in my project. But when i try to get the data from the api , i can not retrieve data from api. it gives “GuzzleHttpCommandExceptionCommandException”.

$ClientClass = new TEClient();
$apiClient = $ClientClass->settings([
    'baseUrl'     => 'https://api.sandbox.ticketevolution.com',
    'apiVersion'  => 'v9',
    'apiToken'    => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'apiSecret'   => 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy',
]);

try {

  $options = array('performer_id' => 1234);

  $events = $apiClient->showPerformer($options);

} catch (Exception $e) {
  // Handle your Exceptions

  echo "<pre>"; 
  print_r($e);
  echo "</pre>";
}


Source: laravel

Leave a Reply