Spinen's PHP ConnectWise Client for Time API generated by Swagger Code Generator.
All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0
Method | HTTP request | Description |
---|---|---|
timeTicketstopwatchesCountGet | GET /time/ticketstopwatches/count | |
timeTicketstopwatchesGet | GET /time/ticketstopwatches | |
timeTicketstopwatchesIdDelete | DELETE /time/ticketstopwatches/{id} | |
timeTicketstopwatchesIdGet | GET /time/ticketstopwatches/{id} | |
timeTicketstopwatchesIdPatch | PATCH /time/ticketstopwatches/{id} | |
timeTicketstopwatchesIdPut | PUT /time/ticketstopwatches/{id} | |
timeTicketstopwatchesPost | POST /time/ticketstopwatches |
\Spinen\ConnectWise\Clients\Time\Model\Count timeTicketstopwatchesCountGet($conditions)
Get Ticket Stopwatches Count
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Time\Api\TicketStopwatchesApi();
$conditions = "conditions_example"; // string |
try {
$result = $api_instance->timeTicketstopwatchesCountGet($conditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketStopwatchesApi->timeTicketstopwatchesCountGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
conditions | string | [optional] |
\Spinen\ConnectWise\Clients\Time\Model\Count
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch[] timeTicketstopwatchesGet($conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size)
Get Ticket Stopwatches
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Time\Api\TicketStopwatchesApi();
$conditions = "conditions_example"; // string |
$order_by = "order_by_example"; // string |
$childconditions = "childconditions_example"; // string |
$customfieldconditions = "customfieldconditions_example"; // string |
$page = 56; // int |
$page_size = 56; // int |
try {
$result = $api_instance->timeTicketstopwatchesGet($conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketStopwatchesApi->timeTicketstopwatchesGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
conditions | string | [optional] | |
order_by | string | [optional] | |
childconditions | string | [optional] | |
customfieldconditions | string | [optional] | |
page | int | [optional] | |
page_size | int | [optional] |
\Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
timeTicketstopwatchesIdDelete($id)
Delete Ticket Stopwatch By Id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Time\Api\TicketStopwatchesApi();
$id = 56; // int |
try {
$api_instance->timeTicketstopwatchesIdDelete($id);
} catch (Exception $e) {
echo 'Exception when calling TicketStopwatchesApi->timeTicketstopwatchesIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch timeTicketstopwatchesIdGet($id)
Get Ticket Stopwatch By Id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Time\Api\TicketStopwatchesApi();
$id = 56; // int |
try {
$result = $api_instance->timeTicketstopwatchesIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketStopwatchesApi->timeTicketstopwatchesIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int |
\Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch timeTicketstopwatchesIdPatch($id, $operations)
Update Ticket Stopwatch
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Time\Api\TicketStopwatchesApi();
$id = 56; // int |
$operations = array(new PatchOperation()); // \Spinen\ConnectWise\Clients\Time\Model\PatchOperation[] |
try {
$result = $api_instance->timeTicketstopwatchesIdPatch($id, $operations);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketStopwatchesApi->timeTicketstopwatchesIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
operations | \Spinen\ConnectWise\Clients\Time\Model\PatchOperation[] |
\Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch timeTicketstopwatchesIdPut($id, $ticket_stopwatch)
Replace Ticket Stopwatch
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Time\Api\TicketStopwatchesApi();
$id = 56; // int |
$ticket_stopwatch = new \Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch(); // \Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch |
try {
$result = $api_instance->timeTicketstopwatchesIdPut($id, $ticket_stopwatch);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketStopwatchesApi->timeTicketstopwatchesIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
ticket_stopwatch | \Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch |
\Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch timeTicketstopwatchesPost($ticket_stopwatch)
Create Ticket Stopwatch
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Time\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Time\Api\TicketStopwatchesApi();
$ticket_stopwatch = new \Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch(); // \Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch |
try {
$result = $api_instance->timeTicketstopwatchesPost($ticket_stopwatch);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketStopwatchesApi->timeTicketstopwatchesPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
ticket_stopwatch | \Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch |
\Spinen\ConnectWise\Clients\Time\Model\TicketStopwatch
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]