All URIs are relative to https://my.sevdesk.de/api/v1
Method | HTTP request | Description |
---|---|---|
createTag | POST /Tag/Factory/create | Create a new tag |
deleteTag | DELETE /Tag/{tagId} | Deletes a tag |
getTagById | GET /Tag/{tagId} | Find tag by ID |
getTagRelations | GET /TagRelation | Retrieve tag relations |
getTags | GET /Tag | Retrieve tags |
updateTag | PUT /Tag/{tagId} | Update tag |
\Swagger\Client\Model\InlineResponse20030 createTag($body)
Create a new tag
Create a new tag
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\TagApi(
// 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
);
$body = new \Swagger\Client\Model\FactoryCreateBody(); // \Swagger\Client\Model\FactoryCreateBody |
try {
$result = $apiInstance->createTag($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->createTag: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\FactoryCreateBody | [optional] |
\Swagger\Client\Model\InlineResponse20030
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\InlineResponse2003 deleteTag($tag_id)
Deletes a tag
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\TagApi(
// 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
);
$tag_id = 56; // int | Id of tag to delete
try {
$result = $apiInstance->deleteTag($tag_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->deleteTag: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
tag_id | int | Id of tag to delete |
\Swagger\Client\Model\InlineResponse2003
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\InlineResponse20019 getTagById($tag_id)
Find tag by ID
Returns a single tag
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\TagApi(
// 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
);
$tag_id = 56; // int | ID of tag to return
try {
$result = $apiInstance->getTagById($tag_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->getTagById: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
tag_id | int | ID of tag to return |
\Swagger\Client\Model\InlineResponse20019
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\InlineResponse20030 getTagRelations()
Retrieve tag relations
Retrieve all tag relations
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\TagApi(
// 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
);
try {
$result = $apiInstance->getTagRelations();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->getTagRelations: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Swagger\Client\Model\InlineResponse20030
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\InlineResponse20019 getTags($id, $name)
Retrieve tags
Retrieve all tags
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\TagApi(
// 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
);
$id = 1.2; // float | ID of the Tag
$name = "name_example"; // string | Name of the Tag
try {
$result = $apiInstance->getTags($id, $name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->getTags: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | float | ID of the Tag | [optional] |
name | string | Name of the Tag | [optional] |
\Swagger\Client\Model\InlineResponse20019
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\InlineResponse20019 updateTag($tag_id, $body)
Update tag
Update an existing tag
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new Swagger\Client\Api\TagApi(
// 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
);
$tag_id = 56; // int | ID of tag you want to update
$body = new \Swagger\Client\Model\TagTagIdBody(); // \Swagger\Client\Model\TagTagIdBody |
try {
$result = $apiInstance->updateTag($tag_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TagApi->updateTag: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
tag_id | int | ID of tag you want to update | |
body | \Swagger\Client\Model\TagTagIdBody | [optional] |
\Swagger\Client\Model\InlineResponse20019
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]