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 |
---|---|---|
systemReportsGet | GET /system/reports | |
systemReportsReportNameColumnsGet | GET /system/reports/{reportName}/columns | |
systemReportsReportNameCountGet | GET /system/reports/{reportName}/count | |
systemReportsReportNameGet | GET /system/reports/{reportName} |
\Spinen\ConnectWise\Clients\System\Model\Report[] systemReportsGet($conditions, $order_by, $childconditions, $customfieldconditions)
Get Reports
<?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\ReportsApi();
$conditions = "conditions_example"; // string |
$order_by = "order_by_example"; // string |
$childconditions = "childconditions_example"; // string |
$customfieldconditions = "customfieldconditions_example"; // string |
try {
$result = $api_instance->systemReportsGet($conditions, $order_by, $childconditions, $customfieldconditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReportsApi->systemReportsGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
conditions | string | [optional] | |
order_by | string | [optional] | |
childconditions | string | [optional] | |
customfieldconditions | string | [optional] |
\Spinen\ConnectWise\Clients\System\Model\Report[]
- 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\JObject[] systemReportsReportNameColumnsGet($report_name)
Get Column Definitions
<?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\ReportsApi();
$report_name = "report_name_example"; // string |
try {
$result = $api_instance->systemReportsReportNameColumnsGet($report_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReportsApi->systemReportsReportNameColumnsGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
report_name | string |
\Spinen\ConnectWise\Clients\System\Model\JObject[]
- 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\Count systemReportsReportNameCountGet($report_name, $conditions)
Get Report Results 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\ReportsApi();
$report_name = "report_name_example"; // string |
$conditions = "conditions_example"; // string |
try {
$result = $api_instance->systemReportsReportNameCountGet($report_name, $conditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReportsApi->systemReportsReportNameCountGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
report_name | string | ||
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\ReportDataResponse systemReportsReportNameGet($report_name, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size, $columns)
Get Report Results
<?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\ReportsApi();
$report_name = "report_name_example"; // string |
$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 |
$columns = "columns_example"; // string |
try {
$result = $api_instance->systemReportsReportNameGet($report_name, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size, $columns);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ReportsApi->systemReportsReportNameGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
report_name | string | ||
conditions | string | [optional] | |
order_by | string | [optional] | |
childconditions | string | [optional] | |
customfieldconditions | string | [optional] | |
page | int | [optional] | |
page_size | int | [optional] | |
columns | string | [optional] |
\Spinen\ConnectWise\Clients\System\Model\ReportDataResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]