import 'package:openapi/api.dart';
All URIs are relative to https://prod.api.appcluster01.ca-central-1.ezmax.com/rest
Method | HTTP request | Description |
---|---|---|
attachmentDownloadV1 | GET /1/object/attachment/{pkiAttachmentID}/download | Retrieve the content |
attachmentGetAttachmentlogsV1 | GET /1/object/attachment/{pkiAttachmentID}/getAttachmentlogs | Retrieve the Attachmentlogs |
attachmentGetDownloadUrlV1 | GET /1/object/attachment/{pkiAttachmentID}/getDownloadUrl | Retrieve a URL to download attachments. |
attachmentDownloadV1(pkiAttachmentID)
Retrieve the content
Using this endpoint, you can retrieve the content of an attachment.
import 'package:openapi/api.dart';
// TODO Configure API key authorization: Authorization
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: Presigned
//defaultApiClient.getAuthentication<ApiKeyAuth>('Presigned').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('Presigned').apiKeyPrefix = 'Bearer';
final api_instance = ObjectAttachmentApi();
final pkiAttachmentID = 56; // int |
try {
api_instance.attachmentDownloadV1(pkiAttachmentID);
} catch (e) {
print('Exception when calling ObjectAttachmentApi->attachmentDownloadV1: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
pkiAttachmentID | 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 attachmentGetAttachmentlogsV1(pkiAttachmentID)
Retrieve the Attachmentlogs
Using this endpoint, you can retrieve the Attachmentlogs of an attachment.
import 'package:openapi/api.dart';
// TODO Configure API key authorization: Authorization
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKeyPrefix = 'Bearer';
final api_instance = ObjectAttachmentApi();
final pkiAttachmentID = 56; // int |
try {
final result = api_instance.attachmentGetAttachmentlogsV1(pkiAttachmentID);
print(result);
} catch (e) {
print('Exception when calling ObjectAttachmentApi->attachmentGetAttachmentlogsV1: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
pkiAttachmentID | int |
AttachmentGetAttachmentlogsV1Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AttachmentGetDownloadUrlV1Response attachmentGetDownloadUrlV1(pkiAttachmentID)
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.
import 'package:openapi/api.dart';
// TODO Configure API key authorization: Authorization
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('Authorization').apiKeyPrefix = 'Bearer';
final api_instance = ObjectAttachmentApi();
final pkiAttachmentID = 56; // int |
try {
final result = api_instance.attachmentGetDownloadUrlV1(pkiAttachmentID);
print(result);
} catch (e) {
print('Exception when calling ObjectAttachmentApi->attachmentGetDownloadUrlV1: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
pkiAttachmentID | int |
AttachmentGetDownloadUrlV1Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]