use WebService::Fastly::Object::InvitationsApi;
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
create_invitation | POST /invitations | Create an invitation |
delete_invitation | DELETE /invitations/{invitation_id} | Delete an invitation |
list_invitations | GET /invitations | List invitations |
InvitationResponse create_invitation(invitation => $invitation)
Create an invitation
Create an invitation.
use Data::Dumper;
use WebService::Fastly::InvitationsApi;
my $api_instance = WebService::Fastly::InvitationsApi->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 $invitation = WebService::Fastly::Object::Invitation->new(); # Invitation |
eval {
my $result = $api_instance->create_invitation(invitation => $invitation);
print Dumper($result);
};
if ($@) {
warn "Exception when calling InvitationsApi->create_invitation: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
invitation | Invitation | [optional] |
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_invitation(invitation_id => $invitation_id)
Delete an invitation
Delete an invitation.
use Data::Dumper;
use WebService::Fastly::InvitationsApi;
my $api_instance = WebService::Fastly::InvitationsApi->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 $invitation_id = "invitation_id_example"; # string | Alphanumeric string identifying an invitation.
eval {
$api_instance->delete_invitation(invitation_id => $invitation_id);
};
if ($@) {
warn "Exception when calling InvitationsApi->delete_invitation: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
invitation_id | string | Alphanumeric string identifying an invitation. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InvitationsResponse list_invitations(page[number] => $page[number], page[size] => $page[size])
List invitations
List all invitations.
use Data::Dumper;
use WebService::Fastly::InvitationsApi;
my $api_instance = WebService::Fastly::InvitationsApi->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 $page[number] = 1; # int | Current page.
my $page[size] = 20; # int | Number of records per page.
eval {
my $result = $api_instance->list_invitations(page[number] => $page[number], page[size] => $page[size]);
print Dumper($result);
};
if ($@) {
warn "Exception when calling InvitationsApi->list_invitations: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
page[number] | int | Current page. | [optional] |
page[size] | int | Number of records per page. | [optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/vnd.api+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]