/**
  * Create new user
  */
 static function createUser($data)
 {
     $test = new ApiTest('createUser', 200, 'object');
     $client = new SeatsioApiClient($data['secretKey']);
     try {
         //execute API call
         $test->responseData = $client->createUser();
     } catch (Exception $e) {
         $test->error = true;
         $test->errorData = $e->getMessage();
     }
     $test->request = $client->request;
     $test->code = $client->response->code;
     $test->type = gettype($test->responseData);
     return $test;
 }
<?php

require '../vendor/autoload.php';
require '../src/SeatsioApiClient.php';
require '../config.php';
//instantiate API client
$client = new SeatsioApiClient(Config::$secretKey);
//execute API request
$data = $client->createUser();
//print response data
echo '<pre>' . print_r($data, true) . '</pre>';