timetoreply / shortcut
0.3.0
2023-05-11 09:34 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is not auto-updated.
Last update: 2024-09-27 16:59:44 UTC
README
Shortcut API
此PHP包由Swagger Codegen项目自动生成
- API版本:3.0
- 包版本:0.3.0
- 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen
需求
PHP 5.5及以上
安装与使用
Composer
要通过Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/timetoreply/shortcut.git"
}
],
"require": {
"timetoreply/shortcut": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/Shortcut/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门
请按照安装过程操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateCategory(); // \Timetoreply\Shortcut\Model\CreateCategory | try { $result = $apiInstance->createCategory($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createCategory: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateEntityTemplate(); // \Timetoreply\Shortcut\Model\CreateEntityTemplate | Request paramaters for creating an entirely new entity template. try { $result = $apiInstance->createEntityTemplate($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createEntityTemplate: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateEpic(); // \Timetoreply\Shortcut\Model\CreateEpic | try { $result = $apiInstance->createEpic($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createEpic: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateEpicComment(); // \Timetoreply\Shortcut\Model\CreateEpicComment | $epicPublicId = 789; // int | The ID of the associated Epic. try { $result = $apiInstance->createEpicComment($body, $epicPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createEpicComment: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateCommentComment(); // \Timetoreply\Shortcut\Model\CreateCommentComment | $epicPublicId = 789; // int | The ID of the associated Epic. $commentPublicId = 789; // int | The ID of the parent Epic Comment. try { $result = $apiInstance->createEpicCommentComment($body, $epicPublicId, $commentPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createEpicCommentComment: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateGroup(); // \Timetoreply\Shortcut\Model\CreateGroup | try { $result = $apiInstance->createGroup($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createGroup: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateIteration(); // \Timetoreply\Shortcut\Model\CreateIteration | try { $result = $apiInstance->createIteration($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createIteration: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateLabelParams(); // \Timetoreply\Shortcut\Model\CreateLabelParams | Request parameters for creating a Label on a Shortcut Story. try { $result = $apiInstance->createLabel($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createLabel: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateLinkedFile(); // \Timetoreply\Shortcut\Model\CreateLinkedFile | try { $result = $apiInstance->createLinkedFile($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createLinkedFile: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateMilestone(); // \Timetoreply\Shortcut\Model\CreateMilestone | try { $result = $apiInstance->createMilestone($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createMilestone: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateStories(); // \Timetoreply\Shortcut\Model\CreateStories | try { $result = $apiInstance->createMultipleStories($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createMultipleStories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateProject(); // \Timetoreply\Shortcut\Model\CreateProject | try { $result = $apiInstance->createProject($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createProject: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateStoryParams(); // \Timetoreply\Shortcut\Model\CreateStoryParams | Request parameters for creating a story. try { $result = $apiInstance->createStory($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createStory: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateStoryComment(); // \Timetoreply\Shortcut\Model\CreateStoryComment | $storyPublicId = 789; // int | The ID of the Story that the Comment is in. try { $result = $apiInstance->createStoryComment($body, $storyPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createStoryComment: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateStoryLink(); // \Timetoreply\Shortcut\Model\CreateStoryLink | try { $result = $apiInstance->createStoryLink($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createStoryLink: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateOrDeleteStoryReaction(); // \Timetoreply\Shortcut\Model\CreateOrDeleteStoryReaction | $storyPublicId = 789; // int | The ID of the Story that the Comment is in. $commentPublicId = 789; // int | The ID of the Comment. try { $result = $apiInstance->createStoryReaction($body, $storyPublicId, $commentPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createStoryReaction: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateTask(); // \Timetoreply\Shortcut\Model\CreateTask | $storyPublicId = 789; // int | The ID of the Story that the Task will be in. try { $result = $apiInstance->createTask($body, $storyPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createTask: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $categoryPublicId = 789; // int | The unique ID of the Category. try { $apiInstance->deleteCategory($categoryPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteCategory: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $customFieldPublicId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | The unique ID of the CustomField. try { $apiInstance->deleteCustomField($customFieldPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteCustomField: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $entityTemplatePublicId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | The unique ID of the entity template. try { $apiInstance->deleteEntityTemplate($entityTemplatePublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteEntityTemplate: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $epicPublicId = 789; // int | The unique ID of the Epic. try { $apiInstance->deleteEpic($epicPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteEpic: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $epicPublicId = 789; // int | The ID of the associated Epic. $commentPublicId = 789; // int | The ID of the Comment. try { $apiInstance->deleteEpicComment($epicPublicId, $commentPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteEpicComment: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $filePublicId = 789; // int | The File’s unique ID. try { $apiInstance->deleteFile($filePublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteFile: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $iterationPublicId = 789; // int | The unique ID of the Iteration. try { $apiInstance->deleteIteration($iterationPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteIteration: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $labelPublicId = 789; // int | The unique ID of the Label. try { $apiInstance->deleteLabel($labelPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteLabel: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $linkedFilePublicId = 789; // int | The unique identifier of the linked file. try { $apiInstance->deleteLinkedFile($linkedFilePublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteLinkedFile: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $milestonePublicId = 789; // int | The ID of the Milestone. try { $apiInstance->deleteMilestone($milestonePublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteMilestone: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\DeleteStories(); // \Timetoreply\Shortcut\Model\DeleteStories | try { $apiInstance->deleteMultipleStories($body); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteMultipleStories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $projectPublicId = 789; // int | The unique ID of the Project. try { $apiInstance->deleteProject($projectPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteProject: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $storyPublicId = 789; // int | The ID of the Story. try { $apiInstance->deleteStory($storyPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteStory: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $storyPublicId = 789; // int | The ID of the Story that the Comment is in. $commentPublicId = 789; // int | The ID of the Comment. try { $apiInstance->deleteStoryComment($storyPublicId, $commentPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteStoryComment: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $storyLinkPublicId = 789; // int | The unique ID of the Story Link. try { $apiInstance->deleteStoryLink($storyLinkPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteStoryLink: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\CreateOrDeleteStoryReaction(); // \Timetoreply\Shortcut\Model\CreateOrDeleteStoryReaction | $storyPublicId = 789; // int | The ID of the Story that the Comment is in. $commentPublicId = 789; // int | The ID of the Comment. try { $apiInstance->deleteStoryReaction($body, $storyPublicId, $commentPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteStoryReaction: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $storyPublicId = 789; // int | The unique ID of the Story this Task is associated with. $taskPublicId = 789; // int | The unique ID of the Task. try { $apiInstance->deleteTask($storyPublicId, $taskPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteTask: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $apiInstance->disableGroups(); } catch (Exception $e) { echo 'Exception when calling DefaultApi->disableGroups: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $apiInstance->disableIterations(); } catch (Exception $e) { echo 'Exception when calling DefaultApi->disableIterations: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $apiInstance->disableStoryTemplates(); } catch (Exception $e) { echo 'Exception when calling DefaultApi->disableStoryTemplates: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $apiInstance->enableGroups(); } catch (Exception $e) { echo 'Exception when calling DefaultApi->enableGroups: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $apiInstance->enableIterations(); } catch (Exception $e) { echo 'Exception when calling DefaultApi->enableIterations: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $apiInstance->enableStoryTemplates(); } catch (Exception $e) { echo 'Exception when calling DefaultApi->enableStoryTemplates: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $categoryPublicId = 789; // int | The unique ID of the Category. try { $result = $apiInstance->getCategory($categoryPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getCategory: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->getCurrentMemberInfo(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getCurrentMemberInfo: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $customFieldPublicId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | The unique ID of the CustomField. try { $result = $apiInstance->getCustomField($customFieldPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getCustomField: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $entityTemplatePublicId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | The unique ID of the entity template. try { $result = $apiInstance->getEntityTemplate($entityTemplatePublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getEntityTemplate: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $epicPublicId = 789; // int | The unique ID of the Epic. try { $result = $apiInstance->getEpic($epicPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getEpic: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $epicPublicId = 789; // int | The ID of the associated Epic. $commentPublicId = 789; // int | The ID of the Comment. try { $result = $apiInstance->getEpicComment($epicPublicId, $commentPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getEpicComment: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->getEpicWorkflow(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getEpicWorkflow: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\GetExternalLinkStoriesParams(); // \Timetoreply\Shortcut\Model\GetExternalLinkStoriesParams | try { $result = $apiInstance->getExternalLinkStories($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getExternalLinkStories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $filePublicId = 789; // int | The File’s unique ID. try { $result = $apiInstance->getFile($filePublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getFile: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $groupPublicId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | The unique ID of the Group. try { $result = $apiInstance->getGroup($groupPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getGroup: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $iterationPublicId = 789; // int | The unique ID of the Iteration. try { $result = $apiInstance->getIteration($iterationPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getIteration: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $labelPublicId = 789; // int | The unique ID of the Label. try { $result = $apiInstance->getLabel($labelPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getLabel: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $linkedFilePublicId = 789; // int | The unique identifier of the linked file. try { $result = $apiInstance->getLinkedFile($linkedFilePublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getLinkedFile: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\GetMember(); // \Timetoreply\Shortcut\Model\GetMember | $memberPublicId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | The Member's unique ID. try { $result = $apiInstance->getMember($body, $memberPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getMember: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $milestonePublicId = 789; // int | The ID of the Milestone. try { $result = $apiInstance->getMilestone($milestonePublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getMilestone: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $projectPublicId = 789; // int | The unique ID of the Project. try { $result = $apiInstance->getProject($projectPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getProject: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $repoPublicId = 789; // int | The unique ID of the Repository. try { $result = $apiInstance->getRepository($repoPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getRepository: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $storyPublicId = 789; // int | The ID of the Story. try { $result = $apiInstance->getStory($storyPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getStory: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $storyPublicId = 789; // int | The ID of the Story that the Comment is in. $commentPublicId = 789; // int | The ID of the Comment. try { $result = $apiInstance->getStoryComment($storyPublicId, $commentPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getStoryComment: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $storyLinkPublicId = 789; // int | The unique ID of the Story Link. try { $result = $apiInstance->getStoryLink($storyLinkPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getStoryLink: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $storyPublicId = 789; // int | The unique ID of the Story this Task is associated with. $taskPublicId = 789; // int | The unique ID of the Task. try { $result = $apiInstance->getTask($storyPublicId, $taskPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getTask: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $workflowPublicId = 789; // int | The ID of the Workflow. try { $result = $apiInstance->getWorkflow($workflowPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getWorkflow: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->listCategories(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listCategories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $categoryPublicId = 789; // int | The unique ID of the Category. try { $result = $apiInstance->listCategoryMilestones($categoryPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listCategoryMilestones: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->listCustomFields(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listCustomFields: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->listEntityTemplates(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listEntityTemplates: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $epicPublicId = 789; // int | The unique ID of the Epic. try { $result = $apiInstance->listEpicComments($epicPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listEpicComments: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\GetEpicStories(); // \Timetoreply\Shortcut\Model\GetEpicStories | $epicPublicId = 789; // int | The unique ID of the Epic. try { $result = $apiInstance->listEpicStories($body, $epicPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listEpicStories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\ListEpics(); // \Timetoreply\Shortcut\Model\ListEpics | try { $result = $apiInstance->listEpics($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listEpics: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->listFiles(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listFiles: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\ListGroupStories(); // \Timetoreply\Shortcut\Model\ListGroupStories | $groupPublicId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | The unique ID of the Group. try { $result = $apiInstance->listGroupStories($body, $groupPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listGroupStories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->listGroups(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listGroups: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\GetIterationStories(); // \Timetoreply\Shortcut\Model\GetIterationStories | $iterationPublicId = 789; // int | The unique ID of the Iteration. try { $result = $apiInstance->listIterationStories($body, $iterationPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listIterationStories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->listIterations(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listIterations: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $labelPublicId = 789; // int | The unique ID of the Label. try { $result = $apiInstance->listLabelEpics($labelPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listLabelEpics: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\GetLabelStories(); // \Timetoreply\Shortcut\Model\GetLabelStories | $labelPublicId = 789; // int | The unique ID of the Label. try { $result = $apiInstance->listLabelStories($body, $labelPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listLabelStories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\ListLabels(); // \Timetoreply\Shortcut\Model\ListLabels | try { $result = $apiInstance->listLabels($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listLabels: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->listLinkedFiles(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listLinkedFiles: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\ListMembers(); // \Timetoreply\Shortcut\Model\ListMembers | try { $result = $apiInstance->listMembers($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listMembers: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $milestonePublicId = 789; // int | The ID of the Milestone. try { $result = $apiInstance->listMilestoneEpics($milestonePublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listMilestoneEpics: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->listMilestones(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listMilestones: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->listProjects(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listProjects: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->listRepositories(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listRepositories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\GetProjectStories(); // \Timetoreply\Shortcut\Model\GetProjectStories | $projectPublicId = 789; // int | The unique ID of the Project. try { $result = $apiInstance->listStories($body, $projectPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listStories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $storyPublicId = 789; // int | The ID of the Story that the Comment is in. try { $result = $apiInstance->listStoryComment($storyPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listStoryComment: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); try { $result = $apiInstance->listWorkflows(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listWorkflows: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\Search(); // \Timetoreply\Shortcut\Model\Search | try { $result = $apiInstance->search($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->search: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\Search(); // \Timetoreply\Shortcut\Model\Search | try { $result = $apiInstance->searchEpics($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->searchEpics: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\Search(); // \Timetoreply\Shortcut\Model\Search | try { $result = $apiInstance->searchIterations($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->searchIterations: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\Search(); // \Timetoreply\Shortcut\Model\Search | try { $result = $apiInstance->searchMilestones($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->searchMilestones: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\Search(); // \Timetoreply\Shortcut\Model\Search | try { $result = $apiInstance->searchStories($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->searchStories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\SearchStories(); // \Timetoreply\Shortcut\Model\SearchStories | try { $result = $apiInstance->searchStoriesOld($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->searchStoriesOld: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $storyPublicId = 789; // int | The ID of the Story. try { $result = $apiInstance->storyHistory($storyPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->storyHistory: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $epicPublicId = 789; // int | The unique ID of the Epic. try { $apiInstance->unlinkProductboardFromEpic($epicPublicId); } catch (Exception $e) { echo 'Exception when calling DefaultApi->unlinkProductboardFromEpic: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateCategory(); // \Timetoreply\Shortcut\Model\UpdateCategory | $categoryPublicId = 789; // int | The unique ID of the Category you wish to update. try { $result = $apiInstance->updateCategory($body, $categoryPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateCategory: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateCustomField(); // \Timetoreply\Shortcut\Model\UpdateCustomField | $customFieldPublicId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | The unique ID of the CustomField. try { $result = $apiInstance->updateCustomField($body, $customFieldPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateCustomField: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateEntityTemplate(); // \Timetoreply\Shortcut\Model\UpdateEntityTemplate | Request parameters for changing either a template's name or any of the attributes it is designed to pre-populate. $entityTemplatePublicId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | The unique ID of the template to be updated. try { $result = $apiInstance->updateEntityTemplate($body, $entityTemplatePublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateEntityTemplate: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateEpic(); // \Timetoreply\Shortcut\Model\UpdateEpic | $epicPublicId = 789; // int | The unique ID of the Epic. try { $result = $apiInstance->updateEpic($body, $epicPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateEpic: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateComment(); // \Timetoreply\Shortcut\Model\UpdateComment | $epicPublicId = 789; // int | The ID of the associated Epic. $commentPublicId = 789; // int | The ID of the Comment. try { $result = $apiInstance->updateEpicComment($body, $epicPublicId, $commentPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateEpicComment: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateFile(); // \Timetoreply\Shortcut\Model\UpdateFile | $filePublicId = 789; // int | The unique ID assigned to the file in Shortcut. try { $result = $apiInstance->updateFile($body, $filePublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateFile: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateGroup(); // \Timetoreply\Shortcut\Model\UpdateGroup | $groupPublicId = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | The unique ID of the Group. try { $result = $apiInstance->updateGroup($body, $groupPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateGroup: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateIteration(); // \Timetoreply\Shortcut\Model\UpdateIteration | $iterationPublicId = 789; // int | The unique ID of the Iteration. try { $result = $apiInstance->updateIteration($body, $iterationPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateIteration: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateLabel(); // \Timetoreply\Shortcut\Model\UpdateLabel | $labelPublicId = 789; // int | The unique ID of the Label you wish to update. try { $result = $apiInstance->updateLabel($body, $labelPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateLabel: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateLinkedFile(); // \Timetoreply\Shortcut\Model\UpdateLinkedFile | $linkedFilePublicId = 789; // int | The unique identifier of the linked file. try { $result = $apiInstance->updateLinkedFile($body, $linkedFilePublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateLinkedFile: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateMilestone(); // \Timetoreply\Shortcut\Model\UpdateMilestone | $milestonePublicId = 789; // int | The ID of the Milestone. try { $result = $apiInstance->updateMilestone($body, $milestonePublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateMilestone: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateStories(); // \Timetoreply\Shortcut\Model\UpdateStories | try { $result = $apiInstance->updateMultipleStories($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateMultipleStories: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateProject(); // \Timetoreply\Shortcut\Model\UpdateProject | $projectPublicId = 789; // int | The unique ID of the Project. try { $result = $apiInstance->updateProject($body, $projectPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateProject: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateStory(); // \Timetoreply\Shortcut\Model\UpdateStory | $storyPublicId = 789; // int | The unique identifier of this story. try { $result = $apiInstance->updateStory($body, $storyPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateStory: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateStoryComment(); // \Timetoreply\Shortcut\Model\UpdateStoryComment | $storyPublicId = 789; // int | The ID of the Story that the Comment is in. $commentPublicId = 789; // int | The ID of the Comment try { $result = $apiInstance->updateStoryComment($body, $storyPublicId, $commentPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateStoryComment: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateStoryLink(); // \Timetoreply\Shortcut\Model\UpdateStoryLink | $storyLinkPublicId = 789; // int | The unique ID of the Story Link. try { $result = $apiInstance->updateStoryLink($body, $storyLinkPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateStoryLink: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Timetoreply\Shortcut\Model\UpdateTask(); // \Timetoreply\Shortcut\Model\UpdateTask | $storyPublicId = 789; // int | The unique identifier of the parent Story. $taskPublicId = 789; // int | The unique identifier of the Task you wish to update. try { $result = $apiInstance->updateTask($body, $storyPublicId, $taskPublicId); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->updateTask: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_token $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKey('Shortcut-Token', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Timetoreply\Shortcut\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Shortcut-Token', 'Bearer'); $apiInstance = new Timetoreply\Shortcut\Api\DefaultApi( // 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 ); $storyId = 789; // int | $file0 = "file0_example"; // string | $file1 = "file1_example"; // string | $file2 = "file2_example"; // string | $file3 = "file3_example"; // string | try { $result = $apiInstance->uploadFiles($storyId, $file0, $file1, $file2, $file3); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->uploadFiles: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI都是相对于https://api.app.shortcut.com/
模型文档
- BasicWorkspaceInfo
- Branch
- Category
- Commit
- CreateCategory
- CreateCategoryParams
- CreateCommentComment
- CreateEntityTemplate
- CreateEpic
- CreateEpicComment
- CreateGroup
- CreateIteration
- CreateLabelParams
- CreateLinkedFile
- CreateMilestone
- CreateOrDeleteStoryReaction
- CreateProject
- CreateStories
- CreateStoryComment
- CreateStoryCommentParams
- CreateStoryContents
- CreateStoryLink
- CreateStoryLinkParams
- CreateStoryParams
- CreateTask
- CreateTaskParams
- CustomField
- CustomFieldEnumValue
- CustomFieldValueParams
- DataConflictError
- DeleteStories
- EntityTemplate
- EntityTemplateTask
- Epic
- EpicAssociatedGroup
- EpicSearchResult
- EpicSearchResults
- EpicSlim
- EpicState
- EpicStats
- EpicWorkflow
- GetEpicStories
- GetExternalLinkStoriesParams
- GetIterationStories
- GetLabelStories
- GetMember
- GetProjectStories
- Group
- 历史
- HistoryActionBranchCreate
- HistoryActionBranchMerge
- HistoryActionBranchPush
- HistoryActionLabelCreate
- HistoryActionLabelDelete
- HistoryActionLabelUpdate
- HistoryActionProjectUpdate
- HistoryActionPullRequest
- HistoryActionStoryCommentCreate
- HistoryActionStoryCreate
- HistoryActionStoryDelete
- HistoryActionStoryLinkCreate
- HistoryActionStoryLinkDelete
- HistoryActionStoryLinkUpdate
- HistoryActionStoryUpdate
- HistoryActionTaskCreate
- HistoryActionTaskDelete
- HistoryActionTaskUpdate
- HistoryActionWorkspace2BulkUpdate
- HistoryChangesStory
- HistoryChangesStoryLink
- HistoryChangesTask
- HistoryReferenceBranch
- HistoryReferenceCommit
- HistoryReferenceCustomFieldEnumValue
- HistoryReferenceEpic
- HistoryReferenceGeneral
- HistoryReferenceGroup
- HistoryReferenceIteration
- HistoryReferenceLabel
- HistoryReferenceProject
- HistoryReferenceStory
- HistoryReferenceStoryTask
- HistoryReferenceWorkflowState
- Icon
- Identity
- Iteration
- IterationAssociatedGroup
- IterationSearchResults
- IterationSlim
- IterationStats
- Label
- LabelSlim
- LabelStats
- LinkedFile
- ListEpics
- ListGroupStories
- ListLabels
- ListMembers
- MaxSearchResultsExceededError
- Member
- MemberInfo
- Milestone
- MilestoneSearchResult
- MilestoneSearchResults
- MilestoneStats
- Profile
- Project
- ProjectStats
- PullRequest
- PullRequestLabel
- Repository
- Search
- SearchResults
- SearchStories
- Story
- StoryComment
- StoryContents
- StoryContentsTask
- StoryCustomField
- 故事历史变更添加移除整型
- 故事历史变更添加移除UUID
- 故事历史变更旧新布尔值
- 故事历史变更旧新整型
- 故事历史变更旧新字符串
- 故事历史变更旧新UUID
- 故事链接
- 故事反应
- 故事搜索结果
- 故事搜索结果列表
- 故事简略信息
- 故事统计信息
- 已同步项
- 任务
- 线程式评论
- 类型化故事链接
- 不可用权益错误
- 更新分类
- 更新评论
- 更新自定义字段
- 更新自定义字段枚举值
- 更新实体模板
- 更新史诗
- 更新文件
- 更新分组
- 更新迭代
- 更新标签
- 更新链接文件
- 更新里程碑
- 更新项目
- 更新故事
- 更新故事
- 更新故事评论
- 更新故事内容
- 更新故事链接
- 更新任务
- 上传的文件
- V3文件正文
- 工作流程
- 工作流程状态
授权文档
api_token
- 类型:API密钥
- API密钥参数名称:Shortcut-Token
- 位置:HTTP头