You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns multiple archived leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals.
156
+
157
+
### Example
158
+
159
+
```php
160
+
161
+
require_once(__DIR__ . '/vendor/autoload.php');
162
+
163
+
164
+
// Configure API key authorization: api_key
165
+
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('api_token', 'YOUR_API_KEY');
166
+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
167
+
// $config = (new Pipedrive\versions\v1\Configuration())->setApiKeyPrefix('api_token', 'Bearer');
168
+
169
+
// Configure OAuth2 access token for authorization: oauth2
170
+
$config = (new Pipedrive\versions\v1\Configuration())->setAccessToken('YOUR_ACCESS_TOKEN');
171
+
172
+
173
+
$apiInstance = new Pipedrive\versions\v1\Api\LeadsApi(
174
+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
175
+
// This is optional, `GuzzleHttp\Client` will be used as default.
176
+
new GuzzleHttp\Client(),
177
+
$config
178
+
);
179
+
$limit = 100; // int | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
180
+
$start = 0; // int | For pagination, the position that represents the first result for the page
181
+
$owner_id = 1; // int | If supplied, only leads matching the given user will be returned. However, `filter_id` takes precedence over `owner_id` when supplied.
182
+
$person_id = 1; // int | If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied.
183
+
$organization_id = 1; // int | If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied.
184
+
$filter_id = 1; // int | The ID of the filter to use
185
+
$sort = 'sort_example'; // string | The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys).
**limit** | **int**| For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. | [optional]
200
+
**start** | **int**| For pagination, the position that represents the first result for the page | [optional]
201
+
**owner_id** | **int**| If supplied, only leads matching the given user will be returned. However, 60;filter_id60; takes precedence over 60;owner_id60; when supplied. | [optional]
202
+
**person_id** | **int**| If supplied, only leads matching the given person will be returned. However, 60;filter_id60; takes precedence over 60;person_id60; when supplied. | [optional]
203
+
**organization_id** | **int**| If supplied, only leads matching the given organization will be returned. However, 60;filter_id60; takes precedence over 60;organization_id60; when supplied. | [optional]
204
+
**filter_id** | **int**| The ID of the filter to use | [optional]
205
+
**sort** | **string**| The field names and sorting mode separated by a comma (60;field_name_1 ASC60;, 60;field_name_2 DESC60;). Only first-level field keys are supported (no nested keys). | [optional]
Returns multiple leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals.
362
+
Returns multiple not archived leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals.
285
363
286
364
### Example
287
365
@@ -307,15 +385,14 @@ $apiInstance = new Pipedrive\versions\v1\Api\LeadsApi(
307
385
);
308
386
$limit = 100; // int | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
309
387
$start = 0; // int | For pagination, the position that represents the first result for the page
310
-
$archived_status = 'archived_status_example'; // string | Filtering based on the archived status of a lead. If not provided, `All` is used.
311
388
$owner_id = 1; // int | If supplied, only leads matching the given user will be returned. However, `filter_id` takes precedence over `owner_id` when supplied.
312
389
$person_id = 1; // int | If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied.
313
390
$organization_id = 1; // int | If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied.
314
391
$filter_id = 1; // int | The ID of the filter to use
315
392
$sort = 'sort_example'; // string | The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys).
**limit** | **int**| For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. | [optional]
330
407
**start** | **int**| For pagination, the position that represents the first result for the page | [optional]
331
-
**archived_status** | **string**| Filtering based on the archived status of a lead. If not provided, 60;All60; is used. | [optional]
332
408
**owner_id** | **int**| If supplied, only leads matching the given user will be returned. However, 60;filter_id60; takes precedence over 60;owner_id60; when supplied. | [optional]
333
409
**person_id** | **int**| If supplied, only leads matching the given person will be returned. However, 60;filter_id60; takes precedence over 60;person_id60; when supplied. | [optional]
334
410
**organization_id** | **int**| If supplied, only leads matching the given organization will be returned. However, 60;filter_id60; takes precedence over 60;organization_id60; when supplied. | [optional]
@@ -518,6 +518,7 @@ $lead_id = 'lead_id_example'; // string | The ID of the lead which notes to fetc
518
518
$deal_id = 56; // int | The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned.
519
519
$person_id = 56; // int | The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned.
520
520
$org_id = 56; // int | The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned.
521
+
$project_id = 56; // int | The ID of the project which notes to fetch. If omitted, notes about all projects will be returned.
521
522
$start = 0; // int | Pagination start
522
523
$limit = 56; // int | Items shown per page
523
524
$sort = 'sort_example'; // string | The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `content`, `add_time`, `update_time`.
@@ -527,9 +528,10 @@ $pinned_to_lead_flag = new \Pipedrive\versions\v1\Model\\Pipedrive\versions\v1\M
527
528
$pinned_to_deal_flag = new \Pipedrive\versions\v1\Model\\Pipedrive\versions\v1\Model\NumberBoolean(); // \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to deal pinning state
528
529
$pinned_to_organization_flag = new \Pipedrive\versions\v1\Model\\Pipedrive\versions\v1\Model\NumberBoolean(); // \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to organization pinning state
529
530
$pinned_to_person_flag = new \Pipedrive\versions\v1\Model\\Pipedrive\versions\v1\Model\NumberBoolean(); // \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to person pinning state
531
+
$pinned_to_project_flag = new \Pipedrive\versions\v1\Model\\Pipedrive\versions\v1\Model\NumberBoolean(); // \Pipedrive\versions\v1\Model\NumberBoolean | If set, the results are filtered by note to project pinning state
echo 'Exception when calling NotesApi->getNotes: ', $e->getMessage(), PHP_EOL;
@@ -545,6 +547,7 @@ Name | Type | Description | Notes
545
547
**deal_id** | **int**| The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. | [optional]
546
548
**person_id** | **int**| The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. | [optional]
547
549
**org_id** | **int**| The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned. | [optional]
550
+
**project_id** | **int**| The ID of the project which notes to fetch. If omitted, notes about all projects will be returned. | [optional]
548
551
**start** | **int**| Pagination start | [optional][default to 0]
549
552
**limit** | **int**| Items shown per page | [optional]
550
553
**sort** | **string**| The field names and sorting mode separated by a comma (60;field_name_1 ASC60;, 60;field_name_2 DESC60;). Only first-level field keys are supported (no nested keys). Supported fields: 60;id60;, 60;user_id60;, 60;deal_id60;, 60;person_id60;, 60;org_id60;, 60;content60;, 60;add_time60;, 60;update_time60;. | [optional]
@@ -554,6 +557,7 @@ Name | Type | Description | Notes
554
557
**pinned_to_deal_flag** | [**\Pipedrive\versions\v1\Model\NumberBoolean**](../Model/.md)| If set, the results are filtered by note to deal pinning state | [optional]
555
558
**pinned_to_organization_flag** | [**\Pipedrive\versions\v1\Model\NumberBoolean**](../Model/.md)| If set, the results are filtered by note to organization pinning state | [optional]
556
559
**pinned_to_person_flag** | [**\Pipedrive\versions\v1\Model\NumberBoolean**](../Model/.md)| If set, the results are filtered by note to person pinning state | [optional]
560
+
**pinned_to_project_flag** | [**\Pipedrive\versions\v1\Model\NumberBoolean**](../Model/.md)| If set, the results are filtered by note to project pinning state | [optional]
0 commit comments