All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
deleteDocument() | DELETE /crm/api/v1/documents/{documentId} | Delete a document. |
deleteDocuments() | DELETE /crm/api/v1/documents | Delete specified documents. |
deleteDocument($documentId)
Delete a document.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Equisoft\SDK\EquisoftConnect\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Equisoft\SDK\EquisoftConnect\Api\DocumentsApi(
// 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(),
$config
);
$documentId = 'documentId_example'; // string | Document unique identifier.
try {
$apiInstance->deleteDocument($documentId);
} catch (Exception $e) {
echo 'Exception when calling DocumentsApi->deleteDocument: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
documentId | string | Document unique identifier. |
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]
deleteDocuments($documentIds)
Delete specified documents.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Equisoft\SDK\EquisoftConnect\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Equisoft\SDK\EquisoftConnect\Api\DocumentsApi(
// 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(),
$config
);
$documentIds = 'documentIds_example'; // string | Documents unique identifiers. Many ids can be passed to this argument separated by coma. Ex: '?documentIds=1,2,3'. Any of the given documents will be deleted.
try {
$apiInstance->deleteDocuments($documentIds);
} catch (Exception $e) {
echo 'Exception when calling DocumentsApi->deleteDocuments: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
documentIds | string | Documents unique identifiers. Many ids can be passed to this argument separated by coma. Ex: '?documentIds=1,2,3'. Any of the given documents will be deleted. |
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]