All URIs are relative to https://api.kinow.com/api
Method | HTTP request | Description |
---|---|---|
getCustomerAddress | GET /customers/{customer_id}/address | |
updateAddress | PUT /addresses/{address_id} |
\Kinow\Client\Model\AddressResponse getCustomerAddress($customer_id)
Get customer address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\AddressApi();
$customer_id = 789; // int | Customer ID to fetch
try {
$result = $api_instance->getCustomerAddress($customer_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AddressApi->getCustomerAddress: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
customer_id | int | Customer ID to fetch |
\Kinow\Client\Model\AddressResponse
- Content-Type: Not defined
- Accept: Not defined
\Kinow\Client\Model\AddressResponse updateAddress($address_id, $body)
Update address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiClientId
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Id', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Id', 'Bearer');
// Configure API key authorization: ApiClientSecret
Kinow\Client\Configuration::getDefaultConfiguration()->setApiKey('X-Client-Secret', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Kinow\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Client-Secret', 'Bearer');
$api_instance = new Kinow\Client\Api\AddressApi();
$address_id = 789; // int | Address ID to update
$body = new \Kinow\Client\Model\UpdateAddressRequest(); // \Kinow\Client\Model\UpdateAddressRequest | Address settings
try {
$result = $api_instance->updateAddress($address_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AddressApi->updateAddress: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
address_id | int | Address ID to update | |
body | \Kinow\Client\Model\UpdateAddressRequest | Address settings |
\Kinow\Client\Model\AddressResponse
- Content-Type: Not defined
- Accept: Not defined