WebService::Fastly::ContactApi
Load the API package
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description ------------- | ------------- | ------------- delete_contact | DELETE /customer/{customer_id}/contact/{contact_id} | Delete a contact list_contacts | GET /customer/{customer_id}/contacts | List contacts
delete_contact
InlineResponse200 delete_contact(customer_id => $customer_id, contact_id => $contact_id)
Delete a contact
Delete a contact.
Example
use
Data::Dumper;
my
$api_instance
= WebService::Fastly::ContactApi->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_id
=
"customer_id_example"
;
# string | Alphanumeric string identifying the customer.
my
$contact_id
=
"contact_id_example"
;
# string | An alphanumeric string identifying the customer contact.
eval
{
my
$result
=
$api_instance
->delete_contact(
customer_id
=>
$customer_id
,
contact_id
=>
$contact_id
);
Dumper(
$result
);
};
if
($@) {
warn
"Exception when calling ContactApi->delete_contact: $@\n"
;
}
Parameters
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- customer_id | string| Alphanumeric string identifying the customer. | contact_id | string| An alphanumeric string identifying the customer contact. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list_contacts
ARRAY[SchemasContactResponse] list_contacts(customer_id => $customer_id)
List contacts
List all contacts from a specified customer ID.
Example
use
Data::Dumper;
my
$api_instance
= WebService::Fastly::ContactApi->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_id
=
"customer_id_example"
;
# string | Alphanumeric string identifying the customer.
eval
{
my
$result
=
$api_instance
->list_contacts(
customer_id
=>
$customer_id
);
Dumper(
$result
);
};
if
($@) {
warn
"Exception when calling ContactApi->list_contacts: $@\n"
;
}
Parameters
Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- customer_id | string| Alphanumeric string identifying the customer. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]