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 |
---|---|---|
salesOpportunitiesIdTeamCountGet | GET /sales/opportunities/{id}/team/count | |
salesOpportunitiesIdTeamGet | GET /sales/opportunities/{id}/team | |
salesOpportunitiesIdTeamPost | POST /sales/opportunities/{id}/team | |
salesOpportunitiesIdTeamTeamIdDelete | DELETE /sales/opportunities/{id}/team/{teamId} | |
salesOpportunitiesIdTeamTeamIdGet | GET /sales/opportunities/{id}/team/{teamId} | |
salesOpportunitiesIdTeamTeamIdPatch | PATCH /sales/opportunities/{id}/team/{teamId} | |
salesOpportunitiesIdTeamTeamIdPut | PUT /sales/opportunities/{id}/team/{teamId} |
\Spinen\ConnectWise\Clients\Sales\Model\Count salesOpportunitiesIdTeamCountGet($id, $conditions)
Get Teams 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\OpportunityTeamsApi();
$id = 56; // int |
$conditions = "conditions_example"; // string |
try {
$result = $api_instance->salesOpportunitiesIdTeamCountGet($id, $conditions);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTeamsApi->salesOpportunitiesIdTeamCountGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
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\Team[] salesOpportunitiesIdTeamGet($id, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size)
Get Teams
<?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\OpportunityTeamsApi();
$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->salesOpportunitiesIdTeamGet($id, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTeamsApi->salesOpportunitiesIdTeamGet: ', $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\Sales\Model\Team[]
- 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\Team salesOpportunitiesIdTeamPost($id, $team)
Create Team
<?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\OpportunityTeamsApi();
$id = 56; // int |
$team = new \Spinen\ConnectWise\Clients\Sales\Model\Team(); // \Spinen\ConnectWise\Clients\Sales\Model\Team |
try {
$result = $api_instance->salesOpportunitiesIdTeamPost($id, $team);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTeamsApi->salesOpportunitiesIdTeamPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
team | \Spinen\ConnectWise\Clients\Sales\Model\Team |
\Spinen\ConnectWise\Clients\Sales\Model\Team
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
salesOpportunitiesIdTeamTeamIdDelete($id, $team_id)
Delete Team 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\OpportunityTeamsApi();
$id = 56; // int |
$team_id = 56; // int |
try {
$api_instance->salesOpportunitiesIdTeamTeamIdDelete($id, $team_id);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTeamsApi->salesOpportunitiesIdTeamTeamIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
team_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\Team salesOpportunitiesIdTeamTeamIdGet($id, $team_id)
Get Team 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\OpportunityTeamsApi();
$id = 56; // int |
$team_id = 56; // int |
try {
$result = $api_instance->salesOpportunitiesIdTeamTeamIdGet($id, $team_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTeamsApi->salesOpportunitiesIdTeamTeamIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
team_id | int |
\Spinen\ConnectWise\Clients\Sales\Model\Team
- 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\Team salesOpportunitiesIdTeamTeamIdPatch($id, $team_id, $operations)
Update Team
<?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\OpportunityTeamsApi();
$id = 56; // int |
$team_id = 56; // int |
$operations = array(new PatchOperation()); // \Spinen\ConnectWise\Clients\Sales\Model\PatchOperation[] |
try {
$result = $api_instance->salesOpportunitiesIdTeamTeamIdPatch($id, $team_id, $operations);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTeamsApi->salesOpportunitiesIdTeamTeamIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
team_id | int | ||
operations | \Spinen\ConnectWise\Clients\Sales\Model\PatchOperation[] |
\Spinen\ConnectWise\Clients\Sales\Model\Team
- 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\Team salesOpportunitiesIdTeamTeamIdPut($id, $team_id, $team)
Replace Team
<?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\OpportunityTeamsApi();
$id = 56; // int |
$team_id = 56; // int |
$team = new \Spinen\ConnectWise\Clients\Sales\Model\Team(); // \Spinen\ConnectWise\Clients\Sales\Model\Team |
try {
$result = $api_instance->salesOpportunitiesIdTeamTeamIdPut($id, $team_id, $team);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OpportunityTeamsApi->salesOpportunitiesIdTeamTeamIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
team_id | int | ||
team | \Spinen\ConnectWise\Clients\Sales\Model\Team |
\Spinen\ConnectWise\Clients\Sales\Model\Team
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]