All URIs are relative to https://us1.pdfgeneratorapi.com/api/v3.
Method | HTTP request | Description |
---|---|---|
deleteWorkspace() | DELETE /workspaces/{workspaceId} | Delete workspace |
getWorkspace() | GET /workspaces/{workspaceId} | Get workspace |
deleteWorkspace($workspace_id): \PDFGeneratorAPI\Model\InlineResponse2002
Delete workspace
Deletes the workspace
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: JSONWebTokenAuth
$config = PDFGeneratorAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PDFGeneratorAPI\Api\WorkspacesApi(
// 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
);
$workspace_id = demo.example@actualreports.com; // string | Workspace identifier
try {
$result = $apiInstance->deleteWorkspace($workspace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WorkspacesApi->deleteWorkspace: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | string | Workspace identifier |
\PDFGeneratorAPI\Model\InlineResponse2002
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getWorkspace($workspace_id): \PDFGeneratorAPI\Model\InlineResponse2005
Get workspace
Returns workspace information
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: JSONWebTokenAuth
$config = PDFGeneratorAPI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new PDFGeneratorAPI\Api\WorkspacesApi(
// 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
);
$workspace_id = demo.example@actualreports.com; // string | Workspace identifier
try {
$result = $apiInstance->getWorkspace($workspace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WorkspacesApi->getWorkspace: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | string | Workspace identifier |
\PDFGeneratorAPI\Model\InlineResponse2005
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]