Spinen's PHP ConnectWise Client for System 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 |
---|---|---|
systemMenuentriesCountGet | GET /system/menuentries/count | |
systemMenuentriesGet | GET /system/menuentries | |
systemMenuentriesIdDelete | DELETE /system/menuentries/{id} | |
systemMenuentriesIdGet | GET /system/menuentries/{id} | |
systemMenuentriesIdImageGet | GET /system/menuentries/{id}/image | |
systemMenuentriesIdImagePost | POST /system/menuentries/{id}/image | |
systemMenuentriesIdPatch | PATCH /system/menuentries/{id} | |
systemMenuentriesIdPut | PUT /system/menuentries/{id} | |
systemMenuentriesPost | POST /system/menuentries |
\Spinen\ConnectWise\Clients\System\Model\Count systemMenuentriesCountGet($conditions)
Get Menu Entries Count
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\System\Api\MenuEntriesApi();
$conditions = "conditions_example"; // string |
try {
$result = $api_instance->systemMenuentriesCountGet($conditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MenuEntriesApi->systemMenuentriesCountGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
conditions | string | [optional] |
\Spinen\ConnectWise\Clients\System\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\System\Model\MenuEntry[] systemMenuentriesGet($conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size)
Get Menu Entries
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\System\Api\MenuEntriesApi();
$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->systemMenuentriesGet($conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MenuEntriesApi->systemMenuentriesGet: ', $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\System\Model\MenuEntry[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
systemMenuentriesIdDelete($id)
Delete Menu Entry By Id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\System\Api\MenuEntriesApi();
$id = 56; // int |
try {
$api_instance->systemMenuentriesIdDelete($id);
} catch (Exception $e) {
echo 'Exception when calling MenuEntriesApi->systemMenuentriesIdDelete: ', $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\System\Model\MenuEntry systemMenuentriesIdGet($id)
Get Menu Entry By Id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\System\Api\MenuEntriesApi();
$id = 56; // int |
try {
$result = $api_instance->systemMenuentriesIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MenuEntriesApi->systemMenuentriesIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int |
\Spinen\ConnectWise\Clients\System\Model\MenuEntry
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
systemMenuentriesIdImageGet($id, $lastmodified, $large_flag)
Get Menu Entry Image
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\System\Api\MenuEntriesApi();
$id = 56; // int |
$lastmodified = "lastmodified_example"; // string |
$large_flag = true; // bool |
try {
$api_instance->systemMenuentriesIdImageGet($id, $lastmodified, $large_flag);
} catch (Exception $e) {
echo 'Exception when calling MenuEntriesApi->systemMenuentriesIdImageGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
lastmodified | string | [optional] | |
large_flag | bool | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
systemMenuentriesIdImagePost($id, $file)
Upload Menu Entry Image
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\System\Api\MenuEntriesApi();
$id = 56; // int |
$file = "/path/to/file.txt"; // \SplFileObject | File to upload
try {
$api_instance->systemMenuentriesIdImagePost($id, $file);
} catch (Exception $e) {
echo 'Exception when calling MenuEntriesApi->systemMenuentriesIdImagePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
file | \SplFileObject | File to upload | [optional] |
void (empty response body)
- Content-Type: multipart/form-data
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\System\Model\MenuEntry systemMenuentriesIdPatch($id, $operations)
Update Menu Entry
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\System\Api\MenuEntriesApi();
$id = 56; // int |
$operations = array(new PatchOperation()); // \Spinen\ConnectWise\Clients\System\Model\PatchOperation[] |
try {
$result = $api_instance->systemMenuentriesIdPatch($id, $operations);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MenuEntriesApi->systemMenuentriesIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
operations | \Spinen\ConnectWise\Clients\System\Model\PatchOperation[] |
\Spinen\ConnectWise\Clients\System\Model\MenuEntry
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\System\Model\MenuEntry systemMenuentriesIdPut($id, $menu_entry)
Replace Menu Entry
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\System\Api\MenuEntriesApi();
$id = 56; // int |
$menu_entry = new \Spinen\ConnectWise\Clients\System\Model\MenuEntry(); // \Spinen\ConnectWise\Clients\System\Model\MenuEntry |
try {
$result = $api_instance->systemMenuentriesIdPut($id, $menu_entry);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MenuEntriesApi->systemMenuentriesIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
menu_entry | \Spinen\ConnectWise\Clients\System\Model\MenuEntry |
\Spinen\ConnectWise\Clients\System\Model\MenuEntry
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\System\Model\MenuEntry systemMenuentriesPost($menu_entry)
Create Menu Entry
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\System\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\System\Api\MenuEntriesApi();
$menu_entry = new \Spinen\ConnectWise\Clients\System\Model\MenuEntry(); // \Spinen\ConnectWise\Clients\System\Model\MenuEntry |
try {
$result = $api_instance->systemMenuentriesPost($menu_entry);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MenuEntriesApi->systemMenuentriesPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
menu_entry | \Spinen\ConnectWise\Clients\System\Model\MenuEntry |
\Spinen\ConnectWise\Clients\System\Model\MenuEntry
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]