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 |
---|---|---|
serviceSurveysIdQuestionsCountGet | GET /service/surveys/{id}/questions/count | |
serviceSurveysIdQuestionsGet | GET /service/surveys/{id}/questions | |
serviceSurveysIdQuestionsPost | POST /service/surveys/{id}/questions | |
serviceSurveysIdQuestionsQuestionIdDelete | DELETE /service/surveys/{id}/questions/{questionId} | |
serviceSurveysIdQuestionsQuestionIdGet | GET /service/surveys/{id}/questions/{questionId} | |
serviceSurveysIdQuestionsQuestionIdPatch | PATCH /service/surveys/{id}/questions/{questionId} | |
serviceSurveysIdQuestionsQuestionIdPut | PUT /service/surveys/{id}/questions/{questionId} |
\Spinen\ConnectWise\Clients\Service\Model\Count serviceSurveysIdQuestionsCountGet($id, $conditions)
Get Survey Questions 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\SurveyQuestionsApi();
$id = 56; // int |
$conditions = "conditions_example"; // string |
try {
$result = $api_instance->serviceSurveysIdQuestionsCountGet($id, $conditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SurveyQuestionsApi->serviceSurveysIdQuestionsCountGet: ', $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\SurveyQuestion[] serviceSurveysIdQuestionsGet($id, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size)
Get Survey Questions
<?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\SurveyQuestionsApi();
$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->serviceSurveysIdQuestionsGet($id, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SurveyQuestionsApi->serviceSurveysIdQuestionsGet: ', $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\SurveyQuestion[]
- 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\SurveyQuestion serviceSurveysIdQuestionsPost($id, $survey_question)
Create Survey Question
<?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\SurveyQuestionsApi();
$id = 56; // int |
$survey_question = new \Spinen\ConnectWise\Clients\Service\Model\SurveyQuestion(); // \Spinen\ConnectWise\Clients\Service\Model\SurveyQuestion |
try {
$result = $api_instance->serviceSurveysIdQuestionsPost($id, $survey_question);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SurveyQuestionsApi->serviceSurveysIdQuestionsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
survey_question | \Spinen\ConnectWise\Clients\Service\Model\SurveyQuestion |
\Spinen\ConnectWise\Clients\Service\Model\SurveyQuestion
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
serviceSurveysIdQuestionsQuestionIdDelete($id, $question_id)
Delete Survey Question 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\SurveyQuestionsApi();
$id = 56; // int |
$question_id = 56; // int |
try {
$api_instance->serviceSurveysIdQuestionsQuestionIdDelete($id, $question_id);
} catch (Exception $e) {
echo 'Exception when calling SurveyQuestionsApi->serviceSurveysIdQuestionsQuestionIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
question_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\SurveyQuestion serviceSurveysIdQuestionsQuestionIdGet($id, $question_id)
Get Survey Question 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\SurveyQuestionsApi();
$id = 56; // int |
$question_id = 56; // int |
try {
$result = $api_instance->serviceSurveysIdQuestionsQuestionIdGet($id, $question_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SurveyQuestionsApi->serviceSurveysIdQuestionsQuestionIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
question_id | int |
\Spinen\ConnectWise\Clients\Service\Model\SurveyQuestion
- 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\SurveyQuestion serviceSurveysIdQuestionsQuestionIdPatch($id, $question_id, $operations)
Update Survey Question
<?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\SurveyQuestionsApi();
$id = 56; // int |
$question_id = 56; // int |
$operations = array(new PatchOperation()); // \Spinen\ConnectWise\Clients\Service\Model\PatchOperation[] |
try {
$result = $api_instance->serviceSurveysIdQuestionsQuestionIdPatch($id, $question_id, $operations);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SurveyQuestionsApi->serviceSurveysIdQuestionsQuestionIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
question_id | int | ||
operations | \Spinen\ConnectWise\Clients\Service\Model\PatchOperation[] |
\Spinen\ConnectWise\Clients\Service\Model\SurveyQuestion
- 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\SurveyQuestion serviceSurveysIdQuestionsQuestionIdPut($id, $question_id, $survey_question)
Replace Survey Question
<?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\SurveyQuestionsApi();
$id = 56; // int |
$question_id = 56; // int |
$survey_question = new \Spinen\ConnectWise\Clients\Service\Model\SurveyQuestion(); // \Spinen\ConnectWise\Clients\Service\Model\SurveyQuestion |
try {
$result = $api_instance->serviceSurveysIdQuestionsQuestionIdPut($id, $question_id, $survey_question);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SurveyQuestionsApi->serviceSurveysIdQuestionsQuestionIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
question_id | int | ||
survey_question | \Spinen\ConnectWise\Clients\Service\Model\SurveyQuestion |
\Spinen\ConnectWise\Clients\Service\Model\SurveyQuestion
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]