All URIs are relative to http://localhost:3000/api, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
projectProjectIdBackupGet() | GET /project/{project_id}/backup | Backup A Project |
projectProjectIdDelete() | DELETE /project/{project_id}/ | Delete project |
projectProjectIdEnvironmentEnvironmentIdDelete() | DELETE /project/{project_id}/environment/{environment_id} | Removes environment |
projectProjectIdEnvironmentEnvironmentIdGet() | GET /project/{project_id}/environment/{environment_id} | Get environment |
projectProjectIdEnvironmentEnvironmentIdPut() | PUT /project/{project_id}/environment/{environment_id} | Update environment |
projectProjectIdEnvironmentGet() | GET /project/{project_id}/environment | Get environment |
projectProjectIdEnvironmentPost() | POST /project/{project_id}/environment | Add environment |
projectProjectIdEventsGet() | GET /project/{project_id}/events | Get Events related to this project |
projectProjectIdGet() | GET /project/{project_id}/ | Fetch project |
projectProjectIdIntegrationsGet() | GET /project/{project_id}/integrations | get all integrations |
projectProjectIdIntegrationsIntegrationIdDelete() | DELETE /project/{project_id}/integrations/{integration_id} | Remove integration |
projectProjectIdIntegrationsIntegrationIdMatchersPost() | POST /project/{project_id}/integrations/{integration_id}/matchers | Add Integration Matcher |
projectProjectIdIntegrationsIntegrationIdPut() | PUT /project/{project_id}/integrations/{integration_id} | Update Integration |
projectProjectIdIntegrationsIntegrationIdValuesPost() | POST /project/{project_id}/integrations/{integration_id}/values | Add Integration Extracted Value |
projectProjectIdIntegrationsPost() | POST /project/{project_id}/integrations | create a new integration |
projectProjectIdInventoryGet() | GET /project/{project_id}/inventory | Get inventory |
projectProjectIdInventoryInventoryIdDelete() | DELETE /project/{project_id}/inventory/{inventory_id} | Removes inventory |
projectProjectIdInventoryInventoryIdGet() | GET /project/{project_id}/inventory/{inventory_id} | Get inventory |
projectProjectIdInventoryInventoryIdPut() | PUT /project/{project_id}/inventory/{inventory_id} | Updates inventory |
projectProjectIdInventoryPost() | POST /project/{project_id}/inventory | create inventory |
projectProjectIdKeysGet() | GET /project/{project_id}/keys | Get access keys linked to project |
projectProjectIdKeysKeyIdDelete() | DELETE /project/{project_id}/keys/{key_id} | Removes access key |
projectProjectIdKeysKeyIdPut() | PUT /project/{project_id}/keys/{key_id} | Updates access key |
projectProjectIdKeysPost() | POST /project/{project_id}/keys | Add access key |
projectProjectIdPut() | PUT /project/{project_id}/ | Update project |
projectProjectIdRepositoriesGet() | GET /project/{project_id}/repositories | Get repositories |
projectProjectIdRepositoriesPost() | POST /project/{project_id}/repositories | Add repository |
projectProjectIdRepositoriesRepositoryIdDelete() | DELETE /project/{project_id}/repositories/{repository_id} | Removes repository |
projectProjectIdRepositoriesRepositoryIdGet() | GET /project/{project_id}/repositories/{repository_id} | Get repository |
projectProjectIdRepositoriesRepositoryIdPut() | PUT /project/{project_id}/repositories/{repository_id} | Updates repository |
projectProjectIdRoleGet() | GET /project/{project_id}/role | Fetch permissions of the current user for project |
projectProjectIdTasksGet() | GET /project/{project_id}/tasks | Get Tasks related to current project |
projectProjectIdTasksLastGet() | GET /project/{project_id}/tasks/last | Get last 200 Tasks related to current project |
projectProjectIdTasksPost() | POST /project/{project_id}/tasks | Starts a job |
projectProjectIdTasksTaskIdDelete() | DELETE /project/{project_id}/tasks/{task_id} | Deletes task (including output) |
projectProjectIdTasksTaskIdGet() | GET /project/{project_id}/tasks/{task_id} | Get a single task |
projectProjectIdTasksTaskIdOutputGet() | GET /project/{project_id}/tasks/{task_id}/output | Get task output |
projectProjectIdTasksTaskIdStopPost() | POST /project/{project_id}/tasks/{task_id}/stop | Stop a job |
projectProjectIdTemplatesGet() | GET /project/{project_id}/templates | Get template |
projectProjectIdTemplatesPost() | POST /project/{project_id}/templates | create template |
projectProjectIdTemplatesTemplateIdDelete() | DELETE /project/{project_id}/templates/{template_id} | Removes template |
projectProjectIdTemplatesTemplateIdGet() | GET /project/{project_id}/templates/{template_id} | Get template |
projectProjectIdTemplatesTemplateIdPut() | PUT /project/{project_id}/templates/{template_id} | Updates template |
projectProjectIdUsersGet() | GET /project/{project_id}/users | Get users linked to project |
projectProjectIdUsersPost() | POST /project/{project_id}/users | Link user to project |
projectProjectIdUsersUserIdDelete() | DELETE /project/{project_id}/users/{user_id} | Removes user from project |
projectProjectIdUsersUserIdPut() | PUT /project/{project_id}/users/{user_id} | Update user role |
projectProjectIdViewsGet() | GET /project/{project_id}/views | Get view |
projectProjectIdViewsPost() | POST /project/{project_id}/views | create view |
projectProjectIdViewsViewIdDelete() | DELETE /project/{project_id}/views/{view_id} | Removes view |
projectProjectIdViewsViewIdGet() | GET /project/{project_id}/views/{view_id} | Get view |
projectProjectIdViewsViewIdPut() | PUT /project/{project_id}/views/{view_id} | Updates view |
projectProjectIdBackupGet($projectId): \ClientAPI\Semaphore\Model\ProjectBackup
Backup A Project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
try {
$result = $apiInstance->projectProjectIdBackupGet($projectId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdBackupGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID |
\ClientAPI\Semaphore\Model\ProjectBackup
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdDelete($projectId)
Delete project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
try {
$apiInstance->projectProjectIdDelete($projectId);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdEnvironmentEnvironmentIdDelete($projectId, $environmentId)
Removes environment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$environmentId = 56; // int | environment ID
try {
$apiInstance->projectProjectIdEnvironmentEnvironmentIdDelete($projectId, $environmentId);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdEnvironmentEnvironmentIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
environmentId | int | environment ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdEnvironmentEnvironmentIdGet($projectId, $environmentId): \ClientAPI\Semaphore\Model\Environment
Get environment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$environmentId = 56; // int | environment ID
try {
$result = $apiInstance->projectProjectIdEnvironmentEnvironmentIdGet($projectId, $environmentId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdEnvironmentEnvironmentIdGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
environmentId | int | environment ID |
\ClientAPI\Semaphore\Model\Environment
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdEnvironmentEnvironmentIdPut($projectId, $environmentId, $environment)
Update environment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$environmentId = 56; // int | environment ID
$environment = new \ClientAPI\Semaphore\Model\EnvironmentRequest(); // \ClientAPI\Semaphore\Model\EnvironmentRequest
try {
$apiInstance->projectProjectIdEnvironmentEnvironmentIdPut($projectId, $environmentId, $environment);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdEnvironmentEnvironmentIdPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
environmentId | int | environment ID | |
environment | \ClientAPI\Semaphore\Model\EnvironmentRequest |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdEnvironmentGet($projectId, $sort, $order): \ClientAPI\Semaphore\Model\Environment[]
Get environment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$sort = name; // string | sorting name
$order = desc; // string | ordering manner
try {
$result = $apiInstance->projectProjectIdEnvironmentGet($projectId, $sort, $order);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdEnvironmentGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
sort | string | sorting name | |
order | string | ordering manner |
\ClientAPI\Semaphore\Model\Environment[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdEnvironmentPost($projectId, $environment): \ClientAPI\Semaphore\Model\Environment
Add environment
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$environment = new \ClientAPI\Semaphore\Model\EnvironmentRequest(); // \ClientAPI\Semaphore\Model\EnvironmentRequest
try {
$result = $apiInstance->projectProjectIdEnvironmentPost($projectId, $environment);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdEnvironmentPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
environment | \ClientAPI\Semaphore\Model\EnvironmentRequest |
\ClientAPI\Semaphore\Model\Environment
- Content-Type:
application/json
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdEventsGet($projectId): \ClientAPI\Semaphore\Model\Event[]
Get Events related to this project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
try {
$result = $apiInstance->projectProjectIdEventsGet($projectId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdEventsGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID |
\ClientAPI\Semaphore\Model\Event[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdGet($projectId): \ClientAPI\Semaphore\Model\Project
Fetch project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
try {
$result = $apiInstance->projectProjectIdGet($projectId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID |
\ClientAPI\Semaphore\Model\Project
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdIntegrationsGet($projectId): \ClientAPI\Semaphore\Model\Integration[]
get all integrations
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
try {
$result = $apiInstance->projectProjectIdIntegrationsGet($projectId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdIntegrationsGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID |
\ClientAPI\Semaphore\Model\Integration[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdIntegrationsIntegrationIdDelete($projectId, $integrationId)
Remove integration
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$integrationId = 56; // int | integration ID
try {
$apiInstance->projectProjectIdIntegrationsIntegrationIdDelete($projectId, $integrationId);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdIntegrationsIntegrationIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
integrationId | int | integration ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdIntegrationsIntegrationIdMatchersPost($projectId, $integrationId, $integrationMatcher)
Add Integration Matcher
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$integrationId = 56; // int | integration ID
$integrationMatcher = new \ClientAPI\Semaphore\Model\IntegrationMatcher(); // \ClientAPI\Semaphore\Model\IntegrationMatcher
try {
$apiInstance->projectProjectIdIntegrationsIntegrationIdMatchersPost($projectId, $integrationId, $integrationMatcher);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdIntegrationsIntegrationIdMatchersPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
integrationId | int | integration ID | |
integrationMatcher | \ClientAPI\Semaphore\Model\IntegrationMatcher |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdIntegrationsIntegrationIdPut($projectId, $integrationId, $integration)
Update Integration
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$integrationId = 56; // int | integration ID
$integration = new \ClientAPI\Semaphore\Model\IntegrationRequest(); // \ClientAPI\Semaphore\Model\IntegrationRequest
try {
$apiInstance->projectProjectIdIntegrationsIntegrationIdPut($projectId, $integrationId, $integration);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdIntegrationsIntegrationIdPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
integrationId | int | integration ID | |
integration | \ClientAPI\Semaphore\Model\IntegrationRequest |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdIntegrationsIntegrationIdValuesPost($projectId, $integrationId, $integrationExtractedValue)
Add Integration Extracted Value
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$integrationId = 56; // int | integration ID
$integrationExtractedValue = new \ClientAPI\Semaphore\Model\IntegrationExtractValue(); // \ClientAPI\Semaphore\Model\IntegrationExtractValue
try {
$apiInstance->projectProjectIdIntegrationsIntegrationIdValuesPost($projectId, $integrationId, $integrationExtractedValue);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdIntegrationsIntegrationIdValuesPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
integrationId | int | integration ID | |
integrationExtractedValue | \ClientAPI\Semaphore\Model\IntegrationExtractValue |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdIntegrationsPost($projectId, $integration): \ClientAPI\Semaphore\Model\Integration
create a new integration
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$integration = new \ClientAPI\Semaphore\Model\IntegrationRequest(); // \ClientAPI\Semaphore\Model\IntegrationRequest
try {
$result = $apiInstance->projectProjectIdIntegrationsPost($projectId, $integration);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdIntegrationsPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
integration | \ClientAPI\Semaphore\Model\IntegrationRequest |
\ClientAPI\Semaphore\Model\Integration
- Content-Type:
application/json
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdInventoryGet($projectId, $sort, $order): \ClientAPI\Semaphore\Model\Inventory[]
Get inventory
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$sort = 'sort_example'; // string | sorting name
$order = 'order_example'; // string | ordering manner
try {
$result = $apiInstance->projectProjectIdInventoryGet($projectId, $sort, $order);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdInventoryGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
sort | string | sorting name | |
order | string | ordering manner |
\ClientAPI\Semaphore\Model\Inventory[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdInventoryInventoryIdDelete($projectId, $inventoryId)
Removes inventory
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$inventoryId = 56; // int | inventory ID
try {
$apiInstance->projectProjectIdInventoryInventoryIdDelete($projectId, $inventoryId);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdInventoryInventoryIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
inventoryId | int | inventory ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdInventoryInventoryIdGet($projectId, $inventoryId): \ClientAPI\Semaphore\Model\Inventory
Get inventory
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$inventoryId = 56; // int | inventory ID
try {
$result = $apiInstance->projectProjectIdInventoryInventoryIdGet($projectId, $inventoryId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdInventoryInventoryIdGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
inventoryId | int | inventory ID |
\ClientAPI\Semaphore\Model\Inventory
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdInventoryInventoryIdPut($projectId, $inventoryId, $inventory)
Updates inventory
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$inventoryId = 56; // int | inventory ID
$inventory = new \ClientAPI\Semaphore\Model\InventoryRequest(); // \ClientAPI\Semaphore\Model\InventoryRequest
try {
$apiInstance->projectProjectIdInventoryInventoryIdPut($projectId, $inventoryId, $inventory);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdInventoryInventoryIdPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
inventoryId | int | inventory ID | |
inventory | \ClientAPI\Semaphore\Model\InventoryRequest |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdInventoryPost($projectId, $inventory): \ClientAPI\Semaphore\Model\Inventory
create inventory
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$inventory = new \ClientAPI\Semaphore\Model\InventoryRequest(); // \ClientAPI\Semaphore\Model\InventoryRequest
try {
$result = $apiInstance->projectProjectIdInventoryPost($projectId, $inventory);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdInventoryPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
inventory | \ClientAPI\Semaphore\Model\InventoryRequest |
\ClientAPI\Semaphore\Model\Inventory
- Content-Type:
application/json
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdKeysGet($projectId, $sort, $order, $keyType): \ClientAPI\Semaphore\Model\AccessKey[]
Get access keys linked to project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$sort = type; // string | sorting name
$order = asc; // string | ordering manner
$keyType = none; // string | Filter by key type
try {
$result = $apiInstance->projectProjectIdKeysGet($projectId, $sort, $order, $keyType);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdKeysGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
sort | string | sorting name | |
order | string | ordering manner | |
keyType | string | Filter by key type | [optional] |
\ClientAPI\Semaphore\Model\AccessKey[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdKeysKeyIdDelete($projectId, $keyId)
Removes access key
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$keyId = 56; // int | key ID
try {
$apiInstance->projectProjectIdKeysKeyIdDelete($projectId, $keyId);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdKeysKeyIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
keyId | int | key ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdKeysKeyIdPut($projectId, $keyId, $accessKey)
Updates access key
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$keyId = 56; // int | key ID
$accessKey = new \ClientAPI\Semaphore\Model\AccessKeyRequest(); // \ClientAPI\Semaphore\Model\AccessKeyRequest
try {
$apiInstance->projectProjectIdKeysKeyIdPut($projectId, $keyId, $accessKey);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdKeysKeyIdPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
keyId | int | key ID | |
accessKey | \ClientAPI\Semaphore\Model\AccessKeyRequest |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdKeysPost($projectId, $accessKey): \ClientAPI\Semaphore\Model\AccessKey
Add access key
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$accessKey = new \ClientAPI\Semaphore\Model\AccessKeyRequest(); // \ClientAPI\Semaphore\Model\AccessKeyRequest
try {
$result = $apiInstance->projectProjectIdKeysPost($projectId, $accessKey);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdKeysPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
accessKey | \ClientAPI\Semaphore\Model\AccessKeyRequest |
\ClientAPI\Semaphore\Model\AccessKey
- Content-Type:
application/json
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdPut($projectId, $project)
Update project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$project = new \ClientAPI\Semaphore\Model\ProjectProjectIdPutRequest(); // \ClientAPI\Semaphore\Model\ProjectProjectIdPutRequest
try {
$apiInstance->projectProjectIdPut($projectId, $project);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
project | \ClientAPI\Semaphore\Model\ProjectProjectIdPutRequest |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdRepositoriesGet($projectId, $sort, $order): \ClientAPI\Semaphore\Model\Repository[]
Get repositories
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$sort = 'sort_example'; // string | sorting name
$order = 'order_example'; // string | ordering manner
try {
$result = $apiInstance->projectProjectIdRepositoriesGet($projectId, $sort, $order);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdRepositoriesGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
sort | string | sorting name | |
order | string | ordering manner |
\ClientAPI\Semaphore\Model\Repository[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdRepositoriesPost($projectId, $repository): \ClientAPI\Semaphore\Model\Repository
Add repository
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$repository = new \ClientAPI\Semaphore\Model\RepositoryRequest(); // \ClientAPI\Semaphore\Model\RepositoryRequest
try {
$result = $apiInstance->projectProjectIdRepositoriesPost($projectId, $repository);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdRepositoriesPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
repository | \ClientAPI\Semaphore\Model\RepositoryRequest |
\ClientAPI\Semaphore\Model\Repository
- Content-Type:
application/json
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdRepositoriesRepositoryIdDelete($projectId, $repositoryId)
Removes repository
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$repositoryId = 56; // int | repository ID
try {
$apiInstance->projectProjectIdRepositoriesRepositoryIdDelete($projectId, $repositoryId);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdRepositoriesRepositoryIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
repositoryId | int | repository ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdRepositoriesRepositoryIdGet($projectId, $repositoryId): \ClientAPI\Semaphore\Model\Repository
Get repository
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$repositoryId = 56; // int | repository ID
try {
$result = $apiInstance->projectProjectIdRepositoriesRepositoryIdGet($projectId, $repositoryId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdRepositoriesRepositoryIdGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
repositoryId | int | repository ID |
\ClientAPI\Semaphore\Model\Repository
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdRepositoriesRepositoryIdPut($projectId, $repositoryId, $repository)
Updates repository
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$repositoryId = 56; // int | repository ID
$repository = new \ClientAPI\Semaphore\Model\RepositoryRequest(); // \ClientAPI\Semaphore\Model\RepositoryRequest
try {
$apiInstance->projectProjectIdRepositoriesRepositoryIdPut($projectId, $repositoryId, $repository);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdRepositoriesRepositoryIdPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
repositoryId | int | repository ID | |
repository | \ClientAPI\Semaphore\Model\RepositoryRequest |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdRoleGet($projectId): \ClientAPI\Semaphore\Model\ProjectProjectIdRoleGet200Response
Fetch permissions of the current user for project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
try {
$result = $apiInstance->projectProjectIdRoleGet($projectId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdRoleGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID |
\ClientAPI\Semaphore\Model\ProjectProjectIdRoleGet200Response
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTasksGet($projectId): \ClientAPI\Semaphore\Model\Task[]
Get Tasks related to current project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
try {
$result = $apiInstance->projectProjectIdTasksGet($projectId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTasksGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID |
\ClientAPI\Semaphore\Model\Task[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTasksLastGet($projectId): \ClientAPI\Semaphore\Model\Task[]
Get last 200 Tasks related to current project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
try {
$result = $apiInstance->projectProjectIdTasksLastGet($projectId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTasksLastGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID |
\ClientAPI\Semaphore\Model\Task[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTasksPost($projectId, $task): \ClientAPI\Semaphore\Model\Task
Starts a job
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$task = new \ClientAPI\Semaphore\Model\ProjectProjectIdTasksPostRequest(); // \ClientAPI\Semaphore\Model\ProjectProjectIdTasksPostRequest
try {
$result = $apiInstance->projectProjectIdTasksPost($projectId, $task);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTasksPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
task | \ClientAPI\Semaphore\Model\ProjectProjectIdTasksPostRequest |
\ClientAPI\Semaphore\Model\Task
- Content-Type:
application/json
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTasksTaskIdDelete($projectId, $taskId)
Deletes task (including output)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$taskId = 56; // int | task ID
try {
$apiInstance->projectProjectIdTasksTaskIdDelete($projectId, $taskId);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTasksTaskIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
taskId | int | task ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTasksTaskIdGet($projectId, $taskId): \ClientAPI\Semaphore\Model\Task
Get a single task
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$taskId = 56; // int | task ID
try {
$result = $apiInstance->projectProjectIdTasksTaskIdGet($projectId, $taskId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTasksTaskIdGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
taskId | int | task ID |
\ClientAPI\Semaphore\Model\Task
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTasksTaskIdOutputGet($projectId, $taskId): \ClientAPI\Semaphore\Model\TaskOutput[]
Get task output
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$taskId = 56; // int | task ID
try {
$result = $apiInstance->projectProjectIdTasksTaskIdOutputGet($projectId, $taskId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTasksTaskIdOutputGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
taskId | int | task ID |
\ClientAPI\Semaphore\Model\TaskOutput[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTasksTaskIdStopPost($projectId, $taskId)
Stop a job
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$taskId = 56; // int | task ID
try {
$apiInstance->projectProjectIdTasksTaskIdStopPost($projectId, $taskId);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTasksTaskIdStopPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
taskId | int | task ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTemplatesGet($projectId, $sort, $order): \ClientAPI\Semaphore\Model\Template[]
Get template
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$sort = 'sort_example'; // string | sorting name
$order = 'order_example'; // string | ordering manner
try {
$result = $apiInstance->projectProjectIdTemplatesGet($projectId, $sort, $order);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTemplatesGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
sort | string | sorting name | |
order | string | ordering manner |
\ClientAPI\Semaphore\Model\Template[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTemplatesPost($projectId, $template): \ClientAPI\Semaphore\Model\Template
create template
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$template = new \ClientAPI\Semaphore\Model\TemplateRequest(); // \ClientAPI\Semaphore\Model\TemplateRequest
try {
$result = $apiInstance->projectProjectIdTemplatesPost($projectId, $template);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTemplatesPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
template | \ClientAPI\Semaphore\Model\TemplateRequest |
\ClientAPI\Semaphore\Model\Template
- Content-Type:
application/json
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTemplatesTemplateIdDelete($projectId, $templateId)
Removes template
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$templateId = 56; // int | template ID
try {
$apiInstance->projectProjectIdTemplatesTemplateIdDelete($projectId, $templateId);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTemplatesTemplateIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
templateId | int | template ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTemplatesTemplateIdGet($projectId, $templateId): \ClientAPI\Semaphore\Model\Template
Get template
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$templateId = 56; // int | template ID
try {
$result = $apiInstance->projectProjectIdTemplatesTemplateIdGet($projectId, $templateId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTemplatesTemplateIdGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
templateId | int | template ID |
\ClientAPI\Semaphore\Model\Template
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdTemplatesTemplateIdPut($projectId, $templateId, $template)
Updates template
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$templateId = 56; // int | template ID
$template = new \ClientAPI\Semaphore\Model\TemplateRequest(); // \ClientAPI\Semaphore\Model\TemplateRequest
try {
$apiInstance->projectProjectIdTemplatesTemplateIdPut($projectId, $templateId, $template);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdTemplatesTemplateIdPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
templateId | int | template ID | |
template | \ClientAPI\Semaphore\Model\TemplateRequest |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdUsersGet($projectId, $sort, $order): \ClientAPI\Semaphore\Model\ProjectUser[]
Get users linked to project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$sort = email; // string | sorting name
$order = desc; // string | ordering manner
try {
$result = $apiInstance->projectProjectIdUsersGet($projectId, $sort, $order);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdUsersGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
sort | string | sorting name | |
order | string | ordering manner |
\ClientAPI\Semaphore\Model\ProjectUser[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdUsersPost($projectId, $user)
Link user to project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$user = new \ClientAPI\Semaphore\Model\ProjectProjectIdUsersPostRequest(); // \ClientAPI\Semaphore\Model\ProjectProjectIdUsersPostRequest
try {
$apiInstance->projectProjectIdUsersPost($projectId, $user);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdUsersPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
user | \ClientAPI\Semaphore\Model\ProjectProjectIdUsersPostRequest |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdUsersUserIdDelete($projectId, $userId)
Removes user from project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$userId = 56; // int | User ID
try {
$apiInstance->projectProjectIdUsersUserIdDelete($projectId, $userId);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdUsersUserIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
userId | int | User ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdUsersUserIdPut($projectId, $userId, $projectUser)
Update user role
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$userId = 56; // int | User ID
$projectUser = new \ClientAPI\Semaphore\Model\ProjectProjectIdUsersUserIdPutRequest(); // \ClientAPI\Semaphore\Model\ProjectProjectIdUsersUserIdPutRequest
try {
$apiInstance->projectProjectIdUsersUserIdPut($projectId, $userId, $projectUser);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdUsersUserIdPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
userId | int | User ID | |
projectUser | \ClientAPI\Semaphore\Model\ProjectProjectIdUsersUserIdPutRequest |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdViewsGet($projectId): \ClientAPI\Semaphore\Model\View[]
Get view
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
try {
$result = $apiInstance->projectProjectIdViewsGet($projectId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdViewsGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID |
\ClientAPI\Semaphore\Model\View[]
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdViewsPost($projectId, $view): \ClientAPI\Semaphore\Model\View
create view
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$view = new \ClientAPI\Semaphore\Model\ViewRequest(); // \ClientAPI\Semaphore\Model\ViewRequest
try {
$result = $apiInstance->projectProjectIdViewsPost($projectId, $view);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdViewsPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
view | \ClientAPI\Semaphore\Model\ViewRequest |
\ClientAPI\Semaphore\Model\View
- Content-Type:
application/json
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdViewsViewIdDelete($projectId, $viewId)
Removes view
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$viewId = 56; // int | view ID
try {
$apiInstance->projectProjectIdViewsViewIdDelete($projectId, $viewId);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdViewsViewIdDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
viewId | int | view ID |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdViewsViewIdGet($projectId, $viewId): \ClientAPI\Semaphore\Model\View
Get view
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$viewId = 56; // int | view ID
try {
$result = $apiInstance->projectProjectIdViewsViewIdGet($projectId, $viewId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdViewsViewIdGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
viewId | int | view ID |
\ClientAPI\Semaphore\Model\View
- Content-Type: Not defined
- Accept:
application/json
,text/plain; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
projectProjectIdViewsViewIdPut($projectId, $viewId, $view)
Updates view
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookie
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Cookie', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Cookie', 'Bearer');
// Configure API key authorization: bearer
$config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ClientAPI\Semaphore\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new ClientAPI\Semaphore\Api\ProjectApi(
// 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
);
$projectId = 56; // int | Project ID
$viewId = 56; // int | view ID
$view = new \ClientAPI\Semaphore\Model\ViewRequest(); // \ClientAPI\Semaphore\Model\ViewRequest
try {
$apiInstance->projectProjectIdViewsViewIdPut($projectId, $viewId, $view);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectProjectIdViewsViewIdPut: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | int | Project ID | |
viewId | int | view ID | |
view | \ClientAPI\Semaphore\Model\ViewRequest |
void (empty response body)
- Content-Type:
application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]