Skip to content

Latest commit

 

History

History
386 lines (263 loc) · 12.5 KB

OpportunityTeamsApi.md

File metadata and controls

386 lines (263 loc) · 12.5 KB

Spinen\ConnectWise\Clients\Sales\OpportunityTeamsApi

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}

salesOpportunitiesIdTeamCountGet

\Spinen\ConnectWise\Clients\Sales\Model\Count salesOpportunitiesIdTeamCountGet($id, $conditions)

Get Teams Count

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id int
conditions string [optional]

Return type

\Spinen\ConnectWise\Clients\Sales\Model\Count

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

salesOpportunitiesIdTeamGet

\Spinen\ConnectWise\Clients\Sales\Model\Team[] salesOpportunitiesIdTeamGet($id, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size)

Get Teams

Example

<?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;
}
?>

Parameters

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]

Return type

\Spinen\ConnectWise\Clients\Sales\Model\Team[]

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

salesOpportunitiesIdTeamPost

\Spinen\ConnectWise\Clients\Sales\Model\Team salesOpportunitiesIdTeamPost($id, $team)

Create Team

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id int
team \Spinen\ConnectWise\Clients\Sales\Model\Team

Return type

\Spinen\ConnectWise\Clients\Sales\Model\Team

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

salesOpportunitiesIdTeamTeamIdDelete

salesOpportunitiesIdTeamTeamIdDelete($id, $team_id)

Delete Team By Id

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id int
team_id int

Return type

void (empty response body)

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

salesOpportunitiesIdTeamTeamIdGet

\Spinen\ConnectWise\Clients\Sales\Model\Team salesOpportunitiesIdTeamTeamIdGet($id, $team_id)

Get Team By Id

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id int
team_id int

Return type

\Spinen\ConnectWise\Clients\Sales\Model\Team

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

salesOpportunitiesIdTeamTeamIdPatch

\Spinen\ConnectWise\Clients\Sales\Model\Team salesOpportunitiesIdTeamTeamIdPatch($id, $team_id, $operations)

Update Team

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id int
team_id int
operations \Spinen\ConnectWise\Clients\Sales\Model\PatchOperation[]

Return type

\Spinen\ConnectWise\Clients\Sales\Model\Team

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

salesOpportunitiesIdTeamTeamIdPut

\Spinen\ConnectWise\Clients\Sales\Model\Team salesOpportunitiesIdTeamTeamIdPut($id, $team_id, $team)

Replace Team

Example

<?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;
}
?>

Parameters

Name Type Description Notes
id int
team_id int
team \Spinen\ConnectWise\Clients\Sales\Model\Team

Return type

\Spinen\ConnectWise\Clients\Sales\Model\Team

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]