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 |
---|---|---|
serviceBoardsIdItemsCountGet | GET /service/boards/{id}/items/count | |
serviceBoardsIdItemsGet | GET /service/boards/{id}/items | |
serviceBoardsIdItemsItemIdDelete | DELETE /service/boards/{id}/items/{itemId} | |
serviceBoardsIdItemsItemIdGet | GET /service/boards/{id}/items/{itemId} | |
serviceBoardsIdItemsItemIdPatch | PATCH /service/boards/{id}/items/{itemId} | |
serviceBoardsIdItemsItemIdPut | PUT /service/boards/{id}/items/{itemId} | |
serviceBoardsIdItemsPost | POST /service/boards/{id}/items |
\Spinen\ConnectWise\Clients\Service\Model\Count serviceBoardsIdItemsCountGet($id, $conditions)
Get Items 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\BoardItemsApi();
$id = 56; // int |
$conditions = "conditions_example"; // string |
try {
$result = $api_instance->serviceBoardsIdItemsCountGet($id, $conditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BoardItemsApi->serviceBoardsIdItemsCountGet: ', $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\Item[] serviceBoardsIdItemsGet($id, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size)
Get Items
<?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\BoardItemsApi();
$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->serviceBoardsIdItemsGet($id, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BoardItemsApi->serviceBoardsIdItemsGet: ', $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\Item[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
serviceBoardsIdItemsItemIdDelete($id, $item_id)
Delete Item 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\BoardItemsApi();
$id = 56; // int |
$item_id = 56; // int |
try {
$api_instance->serviceBoardsIdItemsItemIdDelete($id, $item_id);
} catch (Exception $e) {
echo 'Exception when calling BoardItemsApi->serviceBoardsIdItemsItemIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
item_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\Item serviceBoardsIdItemsItemIdGet($id, $item_id)
Get Item 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\BoardItemsApi();
$id = 56; // int |
$item_id = 56; // int |
try {
$result = $api_instance->serviceBoardsIdItemsItemIdGet($id, $item_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BoardItemsApi->serviceBoardsIdItemsItemIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
item_id | int |
\Spinen\ConnectWise\Clients\Service\Model\Item
- 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\Item serviceBoardsIdItemsItemIdPatch($id, $item_id, $operations)
Update Item
<?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\BoardItemsApi();
$id = 56; // int |
$item_id = 56; // int |
$operations = array(new PatchOperation()); // \Spinen\ConnectWise\Clients\Service\Model\PatchOperation[] |
try {
$result = $api_instance->serviceBoardsIdItemsItemIdPatch($id, $item_id, $operations);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BoardItemsApi->serviceBoardsIdItemsItemIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
item_id | int | ||
operations | \Spinen\ConnectWise\Clients\Service\Model\PatchOperation[] |
\Spinen\ConnectWise\Clients\Service\Model\Item
- 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\Item serviceBoardsIdItemsItemIdPut($id, $item_id, $item)
Replace Item
<?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\BoardItemsApi();
$id = 56; // int |
$item_id = 56; // int |
$item = new \Spinen\ConnectWise\Clients\Service\Model\Item(); // \Spinen\ConnectWise\Clients\Service\Model\Item |
try {
$result = $api_instance->serviceBoardsIdItemsItemIdPut($id, $item_id, $item);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BoardItemsApi->serviceBoardsIdItemsItemIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
item_id | int | ||
item | \Spinen\ConnectWise\Clients\Service\Model\Item |
\Spinen\ConnectWise\Clients\Service\Model\Item
- 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\Item serviceBoardsIdItemsPost($id, $item)
Create Item
<?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\BoardItemsApi();
$id = 56; // int |
$item = new \Spinen\ConnectWise\Clients\Service\Model\Item(); // \Spinen\ConnectWise\Clients\Service\Model\Item |
try {
$result = $api_instance->serviceBoardsIdItemsPost($id, $item);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BoardItemsApi->serviceBoardsIdItemsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
item | \Spinen\ConnectWise\Clients\Service\Model\Item |
\Spinen\ConnectWise\Clients\Service\Model\Item
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]