Spinen's PHP ConnectWise Client for Sales 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 |
---|---|---|
salesOpportunitiesRatingsCountGet | GET /sales/opportunities/ratings/count | |
salesOpportunitiesRatingsGet | GET /sales/opportunities/ratings | |
salesOpportunitiesRatingsIdDelete | DELETE /sales/opportunities/ratings/{id} | |
salesOpportunitiesRatingsIdGet | GET /sales/opportunities/ratings/{id} | |
salesOpportunitiesRatingsIdPatch | PATCH /sales/opportunities/ratings/{id} | |
salesOpportunitiesRatingsIdPut | PUT /sales/opportunities/ratings/{id} | |
salesOpportunitiesRatingsPost | POST /sales/opportunities/ratings |
\Spinen\ConnectWise\Clients\Sales\Model\Count salesOpportunitiesRatingsCountGet($conditions)
Get Opportunity Ratings Count
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Sales\Api\OpportunityRatingsApi();
$conditions = "conditions_example"; // string |
try {
$result = $api_instance->salesOpportunitiesRatingsCountGet($conditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityRatingsApi->salesOpportunitiesRatingsCountGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
conditions | string | [optional] |
\Spinen\ConnectWise\Clients\Sales\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\Sales\Model\OpportunityRating[] salesOpportunitiesRatingsGet($conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size)
Get Opportunity Ratings
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Sales\Api\OpportunityRatingsApi();
$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->salesOpportunitiesRatingsGet($conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityRatingsApi->salesOpportunitiesRatingsGet: ', $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\Sales\Model\OpportunityRating[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
salesOpportunitiesRatingsIdDelete($id)
Delete Opportunity Rating By Id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Sales\Api\OpportunityRatingsApi();
$id = 56; // int |
try {
$api_instance->salesOpportunitiesRatingsIdDelete($id);
} catch (Exception $e) {
echo 'Exception when calling OpportunityRatingsApi->salesOpportunitiesRatingsIdDelete: ', $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\Sales\Model\OpportunityRating salesOpportunitiesRatingsIdGet($id)
Get Opportunity Rating By Id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Sales\Api\OpportunityRatingsApi();
$id = 56; // int |
try {
$result = $api_instance->salesOpportunitiesRatingsIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityRatingsApi->salesOpportunitiesRatingsIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int |
\Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating salesOpportunitiesRatingsIdPatch($id, $operations)
Update Opportunity Rating
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Sales\Api\OpportunityRatingsApi();
$id = 56; // int |
$operations = array(new PatchOperation()); // \Spinen\ConnectWise\Clients\Sales\Model\PatchOperation[] |
try {
$result = $api_instance->salesOpportunitiesRatingsIdPatch($id, $operations);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityRatingsApi->salesOpportunitiesRatingsIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
operations | \Spinen\ConnectWise\Clients\Sales\Model\PatchOperation[] |
\Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating salesOpportunitiesRatingsIdPut($id, $opportunity_rating)
Replace Opportunity Rating
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Sales\Api\OpportunityRatingsApi();
$id = 56; // int |
$opportunity_rating = new \Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating(); // \Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating |
try {
$result = $api_instance->salesOpportunitiesRatingsIdPut($id, $opportunity_rating);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityRatingsApi->salesOpportunitiesRatingsIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
opportunity_rating | \Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating |
\Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating salesOpportunitiesRatingsPost($opportunity_rating)
Create Opportunity Rating
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Sales\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Spinen\ConnectWise\Clients\Sales\Api\OpportunityRatingsApi();
$opportunity_rating = new \Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating(); // \Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating |
try {
$result = $api_instance->salesOpportunitiesRatingsPost($opportunity_rating);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityRatingsApi->salesOpportunitiesRatingsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
opportunity_rating | \Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating |
\Spinen\ConnectWise\Clients\Sales\Model\OpportunityRating
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]