Skip to content

Latest commit

 

History

History
executable file
·
110 lines (74 loc) · 3.12 KB

FileAttachmentsApi.md

File metadata and controls

executable file
·
110 lines (74 loc) · 3.12 KB

Swagger\Client\FileAttachmentsApi

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

deleteFileAttachment($id, $authorization)

Deletes a File Attachment

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id int A File Attachment's ID
authorization string Authorization [default to {{Authorization}}]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, text/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getFileAttachment

getFileAttachment($id, $authorization)

Gets a File Attachment

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id int A File Attachment's ID
authorization string Authorization [default to {{Authorization}}]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/octet-stream

[Back to top] [Back to API list] [Back to Model list] [Back to README]