setUsername("YOUR_API_KEY"); // or, configure Bearer (JWT) authorization: oauth2 // $config->setAccessToken("YOUR_ACCESS_TOKEN"); $api = new HelloSignSDK\Api\ApiAppApi($config); $clientId = "0dd3b823a682527788c4e40cb7b6f7e9"; try { $api->apiAppDelete($clientId); } catch (HelloSignSDK\ApiException $e) { $error = $e->getResponseObject(); echo "Exception when calling HelloSign API: " . print_r($error->getError()); }