All URIs are relative to https://api.insightly.com/v3.0
Method | HTTP request | Description |
---|---|---|
getPipelineStage | GET /PipelineStages/{id} | Gets a Pipeline Stage |
getPipelineStages | GET /PipelineStages | Gets a list of Pipeline Stages |
\Swagger\Client\Model\PipelineStage getPipelineStage($id, $authorization)
Gets a Pipeline Stage
This endpoint returns the graph for a specific pipeline stage.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\PipelineStagesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$id = 789; // int | A Pipeline Stage's ID
$authorization = "{{Authorization}}"; // string | Authorization
try {
$result = $apiInstance->getPipelineStage($id, $authorization);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PipelineStagesApi->getPipelineStage: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | A Pipeline Stage's ID | |
authorization | string | Authorization | [default to {{Authorization}}] |
\Swagger\Client\Model\PipelineStage
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object[] getPipelineStages($authorization, $skip, $top, $count_total)
Gets a list of Pipeline Stages
This read only endpoint returns a list of the pipeline stages that have been set up for the Insightly instance. Pipeline stages are used to indicate where a project or opportunity is in terms of its progression. For example, stage 1 for the sales pipeline might be "initial contact", while stage 4 might be "generating quote". The API for pipeline stages is read only, so to create or update pipeline stages, you'll need to use the web app to do so.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\PipelineStagesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$authorization = "{{Authorization}}"; // string | Authorization
$skip = 56; // int | Optional, number of stages to skip.
$top = 56; // int | Optional, maximum number of stages to return in the response.
$count_total = false; // bool | Optional, true if total number of records should be returned in the response headers.
try {
$result = $apiInstance->getPipelineStages($authorization, $skip, $top, $count_total);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PipelineStagesApi->getPipelineStages: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | Authorization | [default to {{Authorization}}] |
skip | int | Optional, number of stages to skip. | [optional] |
top | int | Optional, maximum number of stages to return in the response. | [optional] |
count_total | bool | Optional, true if total number of records should be returned in the response headers. | [optional] [default to false] |
object[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]