use EzmaxApi::Object::ObjectAttachmentApi;
All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
attachment_download_v1 | GET /1/object/attachment/{pkiAttachmentID}/download | Retrieve the content |
attachment_get_attachmentlogs_v1 | GET /1/object/attachment/{pkiAttachmentID}/getAttachmentlogs | Retrieve the Attachmentlogs |
attachment_get_download_url_v1 | GET /1/object/attachment/{pkiAttachmentID}/getDownloadUrl | Retrieve a URL to download attachments. |
attachment_download_v1(pki_attachment_id => $pki_attachment_id)
Retrieve the content
Using this endpoint, you can retrieve the content of an attachment.
use Data::Dumper;
use EzmaxApi::ObjectAttachmentApi;
my $api_instance = EzmaxApi::ObjectAttachmentApi->new(
# Configure API key authorization: Authorization
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
# Configure API key authorization: Presigned
api_key => {'sAuthorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'sAuthorization' => 'Bearer'},
);
my $pki_attachment_id = 56; # int |
eval {
$api_instance->attachment_download_v1(pki_attachment_id => $pki_attachment_id);
};
if ($@) {
warn "Exception when calling ObjectAttachmentApi->attachment_download_v1: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
pki_attachment_id | int |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AttachmentGetAttachmentlogsV1Response attachment_get_attachmentlogs_v1(pki_attachment_id => $pki_attachment_id)
Retrieve the Attachmentlogs
Using this endpoint, you can retrieve the Attachmentlogs of an attachment.
use Data::Dumper;
use EzmaxApi::ObjectAttachmentApi;
my $api_instance = EzmaxApi::ObjectAttachmentApi->new(
# Configure API key authorization: Authorization
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);
my $pki_attachment_id = 56; # int |
eval {
my $result = $api_instance->attachment_get_attachmentlogs_v1(pki_attachment_id => $pki_attachment_id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ObjectAttachmentApi->attachment_get_attachmentlogs_v1: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
pki_attachment_id | int |
AttachmentGetAttachmentlogsV1Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AttachmentGetDownloadUrlV1Response attachment_get_download_url_v1(pki_attachment_id => $pki_attachment_id)
Retrieve a URL to download attachments.
This endpoint returns an URL to download the attachment. These links will expire after 5 minutes so the download of the file should be made soon after retrieving the link.
use Data::Dumper;
use EzmaxApi::ObjectAttachmentApi;
my $api_instance = EzmaxApi::ObjectAttachmentApi->new(
# Configure API key authorization: Authorization
api_key => {'Authorization' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'Authorization' => 'Bearer'},
);
my $pki_attachment_id = 56; # int |
eval {
my $result = $api_instance->attachment_get_download_url_v1(pki_attachment_id => $pki_attachment_id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ObjectAttachmentApi->attachment_get_download_url_v1: $@\n";
}
Name | Type | Description | Notes |
---|---|---|---|
pki_attachment_id | int |
AttachmentGetDownloadUrlV1Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]