Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.86 KB

CustomerApi.md

File metadata and controls

60 lines (41 loc) · 1.86 KB

Coucounco\Airkey\Swagger\Client\CustomerApi

All URIs are relative to https://integration.api.airkey.evva.com:443/cloud

Method HTTP request Description
getCustomerData GET /v1/customer Gets customer details.

getCustomerData

\Coucounco\Airkey\Swagger\Client\Model\Customer getCustomerData()

Gets customer details.

Returns stored data of the customer.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: X-API-Key
$config = Coucounco\Airkey\Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Coucounco\Airkey\Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');

$apiInstance = new Coucounco\Airkey\Swagger\Client\Api\CustomerApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->getCustomerData();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomerApi->getCustomerData: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\Coucounco\Airkey\Swagger\Client\Model\Customer

Authorization

X-API-Key

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]