Spinen's PHP ConnectWise Client for Service 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 |
---|---|---|
serviceTicketsIdNotesCountGet | GET /service/tickets/{id}/notes/count | |
serviceTicketsIdNotesGet | GET /service/tickets/{id}/notes | |
serviceTicketsIdNotesNoteIdDelete | DELETE /service/tickets/{id}/notes/{noteId} | |
serviceTicketsIdNotesNoteIdGet | GET /service/tickets/{id}/notes/{noteId} | |
serviceTicketsIdNotesNoteIdPatch | PATCH /service/tickets/{id}/notes/{noteId} | |
serviceTicketsIdNotesNoteIdPut | PUT /service/tickets/{id}/notes/{noteId} | |
serviceTicketsIdNotesPost | POST /service/tickets/{id}/notes |
\Spinen\ConnectWise\Clients\Service\Model\Count serviceTicketsIdNotesCountGet($id, $conditions)
Get Service Notes Count
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int |
$conditions = "conditions_example"; // string |
try {
$result = $api_instance->serviceTicketsIdNotesCountGet($id, $conditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesCountGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
conditions | string | [optional] |
\Spinen\ConnectWise\Clients\Service\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\Service\Model\ServiceNote[] serviceTicketsIdNotesGet($id, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size)
Get Service Notes
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int |
$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->serviceTicketsIdNotesGet($id, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
conditions | string | [optional] | |
order_by | string | [optional] | |
childconditions | string | [optional] | |
customfieldconditions | string | [optional] | |
page | int | [optional] | |
page_size | int | [optional] |
\Spinen\ConnectWise\Clients\Service\Model\ServiceNote[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
serviceTicketsIdNotesNoteIdDelete($id, $note_id)
Delete Service Note By Id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int |
$note_id = 56; // int |
try {
$api_instance->serviceTicketsIdNotesNoteIdDelete($id, $note_id);
} catch (Exception $e) {
echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesNoteIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
note_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\Service\Model\ServiceNote serviceTicketsIdNotesNoteIdGet($id, $note_id)
Get Service Note By Id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int |
$note_id = 56; // int |
try {
$result = $api_instance->serviceTicketsIdNotesNoteIdGet($id, $note_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesNoteIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
note_id | int |
\Spinen\ConnectWise\Clients\Service\Model\ServiceNote
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\Service\Model\ServiceNote serviceTicketsIdNotesNoteIdPatch($id, $note_id, $operations)
Update Service Note
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int |
$note_id = 56; // int |
$operations = array(new PatchOperation()); // \Spinen\ConnectWise\Clients\Service\Model\PatchOperation[] |
try {
$result = $api_instance->serviceTicketsIdNotesNoteIdPatch($id, $note_id, $operations);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesNoteIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
note_id | int | ||
operations | \Spinen\ConnectWise\Clients\Service\Model\PatchOperation[] |
\Spinen\ConnectWise\Clients\Service\Model\ServiceNote
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\Service\Model\ServiceNote serviceTicketsIdNotesNoteIdPut($id, $note_id, $service_note)
Replace Service Note
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int |
$note_id = 56; // int |
$service_note = new \Spinen\ConnectWise\Clients\Service\Model\ServiceNote(); // \Spinen\ConnectWise\Clients\Service\Model\ServiceNote |
try {
$result = $api_instance->serviceTicketsIdNotesNoteIdPut($id, $note_id, $service_note);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesNoteIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
note_id | int | ||
service_note | \Spinen\ConnectWise\Clients\Service\Model\ServiceNote |
\Spinen\ConnectWise\Clients\Service\Model\ServiceNote
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\Service\Model\ServiceNote serviceTicketsIdNotesPost($id, $service_note)
Create Service Note
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int |
$service_note = new \Spinen\ConnectWise\Clients\Service\Model\ServiceNote(); // \Spinen\ConnectWise\Clients\Service\Model\ServiceNote |
try {
$result = $api_instance->serviceTicketsIdNotesPost($id, $service_note);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
service_note | \Spinen\ConnectWise\Clients\Service\Model\ServiceNote |
\Spinen\ConnectWise\Clients\Service\Model\ServiceNote
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]