All URIs are relative to https://api.insightly.com/v3.0
Method | HTTP request | Description |
---|---|---|
deleteFileAttachment | DELETE /FileAttachments/{id} | Deletes a File Attachment |
getFileAttachment | GET /FileAttachments/{id} | Gets a File Attachment |
deleteFileAttachment($id, $authorization)
Deletes a File Attachment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\FileAttachmentsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$id = 789; // int | A File Attachment's ID
$authorization = "{{Authorization}}"; // string | Authorization
try {
$apiInstance->deleteFileAttachment($id, $authorization);
} catch (Exception $e) {
echo 'Exception when calling FileAttachmentsApi->deleteFileAttachment: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | A File Attachment's ID | |
authorization | string | Authorization | [default to {{Authorization}}] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getFileAttachment($id, $authorization)
Gets a File Attachment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\FileAttachmentsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$id = 789; // int | A File Attachment's ID
$authorization = "{{Authorization}}"; // string | Authorization
try {
$apiInstance->getFileAttachment($id, $authorization);
} catch (Exception $e) {
echo 'Exception when calling FileAttachmentsApi->getFileAttachment: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | A File Attachment's ID | |
authorization | string | Authorization | [default to {{Authorization}}] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]