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 |
---|---|---|
serviceKnowledgeBaseArticlesCountGet | GET /service/knowledgeBaseArticles/count | |
serviceKnowledgeBaseArticlesGet | GET /service/knowledgeBaseArticles | |
serviceKnowledgeBaseArticlesIdDelete | DELETE /service/knowledgeBaseArticles/{id} | |
serviceKnowledgeBaseArticlesIdGet | GET /service/knowledgeBaseArticles/{id} | |
serviceKnowledgeBaseArticlesIdPatch | PATCH /service/knowledgeBaseArticles/{id} | |
serviceKnowledgeBaseArticlesIdPut | PUT /service/knowledgeBaseArticles/{id} | |
serviceKnowledgeBaseArticlesPost | POST /service/knowledgeBaseArticles |
\Spinen\ConnectWise\Clients\Service\Model\Count serviceKnowledgeBaseArticlesCountGet($conditions, $custom_field_conditions)
Get Knowledge Base Articles 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\KnowledgeBaseArticlesApi();
$conditions = "conditions_example"; // string |
$custom_field_conditions = "custom_field_conditions_example"; // string |
try {
$result = $api_instance->serviceKnowledgeBaseArticlesCountGet($conditions, $custom_field_conditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling KnowledgeBaseArticlesApi->serviceKnowledgeBaseArticlesCountGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
conditions | string | [optional] | |
custom_field_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\KnowledgeBaseArticle[] serviceKnowledgeBaseArticlesGet($conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size)
Get Knowledge Base Articles
<?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\KnowledgeBaseArticlesApi();
$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->serviceKnowledgeBaseArticlesGet($conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling KnowledgeBaseArticlesApi->serviceKnowledgeBaseArticlesGet: ', $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\Service\Model\KnowledgeBaseArticle[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
serviceKnowledgeBaseArticlesIdDelete($id)
Delete Knowledge Base Article 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\KnowledgeBaseArticlesApi();
$id = 56; // int |
try {
$api_instance->serviceKnowledgeBaseArticlesIdDelete($id);
} catch (Exception $e) {
echo 'Exception when calling KnowledgeBaseArticlesApi->serviceKnowledgeBaseArticlesIdDelete: ', $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\Service\Model\KnowledgeBaseArticle serviceKnowledgeBaseArticlesIdGet($id)
Get Knowledge Base Article 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\KnowledgeBaseArticlesApi();
$id = 56; // int |
try {
$result = $api_instance->serviceKnowledgeBaseArticlesIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling KnowledgeBaseArticlesApi->serviceKnowledgeBaseArticlesIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int |
\Spinen\ConnectWise\Clients\Service\Model\KnowledgeBaseArticle
- 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\KnowledgeBaseArticle serviceKnowledgeBaseArticlesIdPatch($id, $operations)
Update Knowledge Base Article
<?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\KnowledgeBaseArticlesApi();
$id = 56; // int |
$operations = array(new PatchOperation()); // \Spinen\ConnectWise\Clients\Service\Model\PatchOperation[] |
try {
$result = $api_instance->serviceKnowledgeBaseArticlesIdPatch($id, $operations);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling KnowledgeBaseArticlesApi->serviceKnowledgeBaseArticlesIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
operations | \Spinen\ConnectWise\Clients\Service\Model\PatchOperation[] |
\Spinen\ConnectWise\Clients\Service\Model\KnowledgeBaseArticle
- 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\KnowledgeBaseArticle serviceKnowledgeBaseArticlesIdPut($id, $knowledge_base_article)
Replace Knowledge Base Article
<?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\KnowledgeBaseArticlesApi();
$id = 56; // int |
$knowledge_base_article = new \Spinen\ConnectWise\Clients\Service\Model\KnowledgeBaseArticle(); // \Spinen\ConnectWise\Clients\Service\Model\KnowledgeBaseArticle |
try {
$result = $api_instance->serviceKnowledgeBaseArticlesIdPut($id, $knowledge_base_article);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling KnowledgeBaseArticlesApi->serviceKnowledgeBaseArticlesIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
knowledge_base_article | \Spinen\ConnectWise\Clients\Service\Model\KnowledgeBaseArticle |
\Spinen\ConnectWise\Clients\Service\Model\KnowledgeBaseArticle
- 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\KnowledgeBaseArticle serviceKnowledgeBaseArticlesPost($knowledge_base_article)
Create Knowledge Base Article
<?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\KnowledgeBaseArticlesApi();
$knowledge_base_article = new \Spinen\ConnectWise\Clients\Service\Model\KnowledgeBaseArticle(); // \Spinen\ConnectWise\Clients\Service\Model\KnowledgeBaseArticle |
try {
$result = $api_instance->serviceKnowledgeBaseArticlesPost($knowledge_base_article);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling KnowledgeBaseArticlesApi->serviceKnowledgeBaseArticlesPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
knowledge_base_article | \Spinen\ConnectWise\Clients\Service\Model\KnowledgeBaseArticle |
\Spinen\ConnectWise\Clients\Service\Model\KnowledgeBaseArticle
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]