use WebService::Fastly::Object::CustomerAddressesApi;
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_customer_address | POST /billing/v3/customer-addresses | Creates an address associated with a customer account. |
list_customer_addresses | GET /billing/v3/customer-addresses | Return the list of addresses associated with a customer account. |
update_customer_address | PUT /billing/v3/customer-addresses/{type} | Updates an address associated with a customer account. |
InlineResponse201 create_customer_address(customer_address => $customer_address)
Creates an address associated with a customer account.
Creates an address associated with a customer account.
use Data::Dumper;
use WebService::Fastly::CustomerAddressesApi;
my $api_instance = WebService::Fastly::CustomerAddressesApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $customer_address = WebService::Fastly::Object::CustomerAddress->new(); # CustomerAddress |
eval {
my $result = $api_instance->create_customer_address(customer_address => $customer_address);
print Dumper($result);
};
if ($@) {
warn "Exception when calling CustomerAddressesApi->create_customer_address: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
customer_address | CustomerAddress |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListCustomerAddressesResponse list_customer_addresses()
Return the list of addresses associated with a customer account.
Return the list of addresses associated with a customer account.
use Data::Dumper;
use WebService::Fastly::CustomerAddressesApi;
my $api_instance = WebService::Fastly::CustomerAddressesApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
eval {
my $result = $api_instance->list_customer_addresses();
print Dumper($result);
};
if ($@) {
warn "Exception when calling CustomerAddressesApi->list_customer_addresses: $@\n";
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_customer_address(type => $type, customer_address => $customer_address)
Updates an address associated with a customer account.
Updates an address associated with a customer account.
use Data::Dumper;
use WebService::Fastly::CustomerAddressesApi;
my $api_instance = WebService::Fastly::CustomerAddressesApi->new(
# Configure API key authorization: token
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
);
my $type = "type_example"; # string | Alphanumeric type of the address being modified.
my $customer_address = WebService::Fastly::Object::CustomerAddress->new(); # CustomerAddress |
eval {
$api_instance->update_customer_address(type => $type, customer_address => $customer_address);
};
if ($@) {
warn "Exception when calling CustomerAddressesApi->update_customer_address: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
type | string | Alphanumeric type of the address being modified. | |
customer_address | CustomerAddress |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]