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 |
---|---|---|
salesOpportunitiesTypesCountGet | GET /sales/opportunities/types/count | |
salesOpportunitiesTypesGet | GET /sales/opportunities/types | |
salesOpportunitiesTypesIdDelete | DELETE /sales/opportunities/types/{id} | |
salesOpportunitiesTypesIdGet | GET /sales/opportunities/types/{id} | |
salesOpportunitiesTypesIdPatch | PATCH /sales/opportunities/types/{id} | |
salesOpportunitiesTypesIdPut | PUT /sales/opportunities/types/{id} | |
salesOpportunitiesTypesPost | POST /sales/opportunities/types |
\Spinen\ConnectWise\Clients\Sales\Model\Count salesOpportunitiesTypesCountGet($conditions)
Get Opportunity Types 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\OpportunityTypesApi();
$conditions = "conditions_example"; // string |
try {
$result = $api_instance->salesOpportunitiesTypesCountGet($conditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTypesApi->salesOpportunitiesTypesCountGet: ', $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\OpportunityType[] salesOpportunitiesTypesGet($conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size)
Get Opportunity Types
<?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\OpportunityTypesApi();
$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->salesOpportunitiesTypesGet($conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTypesApi->salesOpportunitiesTypesGet: ', $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\OpportunityType[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
salesOpportunitiesTypesIdDelete($id)
Delete Opportunity Type 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\OpportunityTypesApi();
$id = 56; // int |
try {
$api_instance->salesOpportunitiesTypesIdDelete($id);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTypesApi->salesOpportunitiesTypesIdDelete: ', $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\OpportunityType salesOpportunitiesTypesIdGet($id)
Get Opportunity Type 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\OpportunityTypesApi();
$id = 56; // int |
try {
$result = $api_instance->salesOpportunitiesTypesIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTypesApi->salesOpportunitiesTypesIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int |
\Spinen\ConnectWise\Clients\Sales\Model\OpportunityType
- 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\OpportunityType salesOpportunitiesTypesIdPatch($id, $operations)
Update Opportunity Type
<?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\OpportunityTypesApi();
$id = 56; // int |
$operations = array(new PatchOperation()); // \Spinen\ConnectWise\Clients\Sales\Model\PatchOperation[] |
try {
$result = $api_instance->salesOpportunitiesTypesIdPatch($id, $operations);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTypesApi->salesOpportunitiesTypesIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
operations | \Spinen\ConnectWise\Clients\Sales\Model\PatchOperation[] |
\Spinen\ConnectWise\Clients\Sales\Model\OpportunityType
- 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\OpportunityType salesOpportunitiesTypesIdPut($id, $opportunity_type)
Replace Opportunity Type
<?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\OpportunityTypesApi();
$id = 56; // int |
$opportunity_type = new \Spinen\ConnectWise\Clients\Sales\Model\OpportunityType(); // \Spinen\ConnectWise\Clients\Sales\Model\OpportunityType |
try {
$result = $api_instance->salesOpportunitiesTypesIdPut($id, $opportunity_type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTypesApi->salesOpportunitiesTypesIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
opportunity_type | \Spinen\ConnectWise\Clients\Sales\Model\OpportunityType |
\Spinen\ConnectWise\Clients\Sales\Model\OpportunityType
- 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\OpportunityType salesOpportunitiesTypesPost($opportunity_type)
Create Opportunity Type
<?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\OpportunityTypesApi();
$opportunity_type = new \Spinen\ConnectWise\Clients\Sales\Model\OpportunityType(); // \Spinen\ConnectWise\Clients\Sales\Model\OpportunityType |
try {
$result = $api_instance->salesOpportunitiesTypesPost($opportunity_type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTypesApi->salesOpportunitiesTypesPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
opportunity_type | \Spinen\ConnectWise\Clients\Sales\Model\OpportunityType |
\Spinen\ConnectWise\Clients\Sales\Model\OpportunityType
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]