$apiInstance = new Fastly\Api\CustomerAddressesApi(
// 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
);
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
createCustomerAddress() | POST /billing/v3/customer-addresses | Creates an address associated with a customer account. |
listCustomerAddresses() | GET /billing/v3/customer-addresses | Return the list of addresses associated with a customer account. |
updateCustomerAddress() | PUT /billing/v3/customer-addresses/{type} | Updates an address associated with a customer account. |
createCustomerAddress($options): \Fastly\Model\InlineResponse201 // Creates an address associated with a customer account.
Creates an address associated with a customer account.
$options['customer_address'] = new \Fastly\Model\CustomerAddress(); // \Fastly\Model\CustomerAddress
try {
$result = $apiInstance->createCustomerAddress($options);
} catch (Exception $e) {
echo 'Exception when calling CustomerAddressesApi->createCustomerAddress: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
customer_address | \Fastly\Model\CustomerAddress |
\Fastly\Model\InlineResponse201
[Back to top] [Back to API list] [Back to README]
listCustomerAddresses($options): \Fastly\Model\ListCustomerAddressesResponse // Return the list of addresses associated with a customer account.
Return the list of addresses associated with a customer account.
try {
$result = $apiInstance->listCustomerAddresses($options);
} catch (Exception $e) {
echo 'Exception when calling CustomerAddressesApi->listCustomerAddresses: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
This endpoint does not need any parameters.
\Fastly\Model\ListCustomerAddressesResponse
[Back to top] [Back to API list] [Back to README]
updateCustomerAddress($options) // Updates an address associated with a customer account.
Updates an address associated with a customer account.
$options['type'] = 'type_example'; // string | Alphanumeric type of the address being modified.
$options['customer_address'] = new \Fastly\Model\CustomerAddress(); // \Fastly\Model\CustomerAddress
try {
$apiInstance->updateCustomerAddress($options);
} catch (Exception $e) {
echo 'Exception when calling CustomerAddressesApi->updateCustomerAddress: ', $e->getMessage(), PHP_EOL;
}
Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes |
---|---|---|---|
type | string | Alphanumeric type of the address being modified. | |
customer_address | \Fastly\Model\CustomerAddress |
void (empty response body)