Skip to content

Commit 8bc3a66

Browse files
author
pipedrive-bot
committed
Build 199 - version-minor
1 parent 291130c commit 8bc3a66

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+9214
-579
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Added
9+
- Added `creator_user_id` to responses of Activities v2 endpoints
10+
- Added `marketing_status` documentation to Persons v2 endpoints
811

912
[9.0.0](https://github.com/pipedrive/client-php/compare/8.1.5...9.0.0) (2025-03-31)
1013

docs/versions/v1/Api/ActivitiesApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Method | HTTP request | Description
88
[**deleteActivities()**](ActivitiesApi.md#deleteActivities) | **DELETE** /activities | Delete multiple activities in bulk
99
[**deleteActivity()**](ActivitiesApi.md#deleteActivity) | **DELETE** /activities/{id} | Delete an activity
1010
[**getActivities()**](ActivitiesApi.md#getActivities) | **GET** /activities | Get all activities assigned to a particular user
11-
[**getActivitiesCollection()**](ActivitiesApi.md#getActivitiesCollection) | **GET** /activities/collection | Get all activities (BETA)
11+
[**getActivitiesCollection()**](ActivitiesApi.md#getActivitiesCollection) | **GET** /activities/collection | Get all activities collection
1212
[**getActivity()**](ActivitiesApi.md#getActivity) | **GET** /activities/{id} | Get details of an activity
1313
[**updateActivity()**](ActivitiesApi.md#updateActivity) | **PUT** /activities/{id} | Update an activity
1414

@@ -86,7 +86,7 @@ deleteActivities($ids): \Pipedrive\versions\v1\Model\DeleteActivitiesResponse
8686

8787
Delete multiple activities in bulk
8888

89-
Marks multiple activities as deleted. After 30 days, the activities will be permanently deleted.
89+
Marks multiple activities as deleted. After 30 days, the activities will be permanently deleted. <br>This endpoint has been deprecated. Please use \"https://developers.pipedrive.com/docs/api/v1/Activities#deleteActivity\" target=\"_blank\" rel=\"noopener noreferrer\">DELETE /api/v2/activities/{id}a> instead.
9090

9191
### Example
9292

@@ -293,9 +293,9 @@ Name | Type | Description | Notes
293293
getActivitiesCollection($cursor, $limit, $since, $until, $user_id, $done, $type): \Pipedrive\versions\v1\Model\GetActivitiesCollectionResponse
294294
```
295295

296-
Get all activities (BETA)
296+
Get all activities collection
297297

298-
298+
299299

300300
### Example
301301

docs/versions/v1/Api/DealsApi.md

Lines changed: 253 additions & 9 deletions
Large diffs are not rendered by default.

docs/versions/v1/Api/LeadsApi.md

Lines changed: 81 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**addLead()**](LeadsApi.md#addLead) | **POST** /leads | Add a lead
88
[**deleteLead()**](LeadsApi.md#deleteLead) | **DELETE** /leads/{id} | Delete a lead
9+
[**getArchivedLeads()**](LeadsApi.md#getArchivedLeads) | **GET** /leads/archived | Get all archived leads
910
[**getLead()**](LeadsApi.md#getLead) | **GET** /leads/{id} | Get one lead
1011
[**getLeadUsers()**](LeadsApi.md#getLeadUsers) | **GET** /leads/{id}/permittedUsers | List permitted users
1112
[**getLeads()**](LeadsApi.md#getLeads) | **GET** /leads | Get all leads
@@ -143,6 +144,83 @@ Name | Type | Description | Notes
143144
[[Back to Model list]](../README.md#documentation-for-models)
144145
[[Back to README]](../README.md)
145146

147+
## `getArchivedLeads()`
148+
149+
```php
150+
getArchivedLeads($limit, $start, $owner_id, $person_id, $organization_id, $filter_id, $sort): \Pipedrive\versions\v1\Model\GetLeadsResponse
151+
```
152+
153+
Get all archived leads
154+
155+
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).
186+
187+
try {
188+
$result = $apiInstance->getArchivedLeads($limit, $start, $owner_id, $person_id, $organization_id, $filter_id, $sort);
189+
print_r($result);
190+
} catch (Exception $e) {
191+
echo 'Exception when calling LeadsApi->getArchivedLeads: ', $e->getMessage(), PHP_EOL;
192+
}
193+
```
194+
195+
### Parameters
196+
197+
Name | Type | Description | Notes
198+
------------- | ------------- | ------------- | -------------
199+
**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, &#x60;filter_id&#x60; takes precedence over &#x60;owner_id&#x60; when supplied. | [optional]
202+
**person_id** | **int**| If supplied, only leads matching the given person will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;person_id&#x60; when supplied. | [optional]
203+
**organization_id** | **int**| If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; 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 (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys). | [optional]
206+
207+
### Return type
208+
209+
[**\Pipedrive\versions\v1\Model\GetLeadsResponse**](../Model/GetLeadsResponse.md)
210+
211+
### Authorization
212+
213+
[api_key](../README.md#api_key), [oauth2](../README.md#oauth2)
214+
215+
### HTTP request headers
216+
217+
- **Content-Type**: Not defined
218+
- **Accept**: `application/json`
219+
220+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
221+
[[Back to Model list]](../README.md#documentation-for-models)
222+
[[Back to README]](../README.md)
223+
146224
## `getLead()`
147225

148226
```php
@@ -276,12 +354,12 @@ Name | Type | Description | Notes
276354
## `getLeads()`
277355

278356
```php
279-
getLeads($limit, $start, $archived_status, $owner_id, $person_id, $organization_id, $filter_id, $sort): \Pipedrive\versions\v1\Model\GetLeadsResponse
357+
getLeads($limit, $start, $owner_id, $person_id, $organization_id, $filter_id, $sort): \Pipedrive\versions\v1\Model\GetLeadsResponse
280358
```
281359

282360
Get all leads
283361

284-
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.
285363

286364
### Example
287365

@@ -307,15 +385,14 @@ $apiInstance = new Pipedrive\versions\v1\Api\LeadsApi(
307385
);
308386
$limit = 100; // int | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned.
309387
$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.
311388
$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.
312389
$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.
313390
$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.
314391
$filter_id = 1; // int | The ID of the filter to use
315392
$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).
316393

317394
try {
318-
$result = $apiInstance->getLeads($limit, $start, $archived_status, $owner_id, $person_id, $organization_id, $filter_id, $sort);
395+
$result = $apiInstance->getLeads($limit, $start, $owner_id, $person_id, $organization_id, $filter_id, $sort);
319396
print_r($result);
320397
} catch (Exception $e) {
321398
echo 'Exception when calling LeadsApi->getLeads: ', $e->getMessage(), PHP_EOL;
@@ -328,7 +405,6 @@ Name | Type | Description | Notes
328405
------------- | ------------- | ------------- | -------------
329406
**limit** | **int**| For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. | [optional]
330407
**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, &#x60;All&#x60; is used. | [optional]
332408
**owner_id** | **int**| If supplied, only leads matching the given user will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;owner_id&#x60; when supplied. | [optional]
333409
**person_id** | **int**| If supplied, only leads matching the given person will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;person_id&#x60; when supplied. | [optional]
334410
**organization_id** | **int**| If supplied, only leads matching the given organization will be returned. However, &#x60;filter_id&#x60; takes precedence over &#x60;organization_id&#x60; when supplied. | [optional]

docs/versions/v1/Api/NotesApi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ Name | Type | Description | Notes
484484
## `getNotes()`
485485

486486
```php
487-
getNotes($user_id, $lead_id, $deal_id, $person_id, $org_id, $start, $limit, $sort, $start_date, $end_date, $pinned_to_lead_flag, $pinned_to_deal_flag, $pinned_to_organization_flag, $pinned_to_person_flag): \Pipedrive\versions\v1\Model\GetNotes
487+
getNotes($user_id, $lead_id, $deal_id, $person_id, $org_id, $project_id, $start, $limit, $sort, $start_date, $end_date, $pinned_to_lead_flag, $pinned_to_deal_flag, $pinned_to_organization_flag, $pinned_to_person_flag, $pinned_to_project_flag): \Pipedrive\versions\v1\Model\GetNotes
488488
```
489489

490490
Get all notes
@@ -518,6 +518,7 @@ $lead_id = 'lead_id_example'; // string | The ID of the lead which notes to fetc
518518
$deal_id = 56; // int | The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned.
519519
$person_id = 56; // int | The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned.
520520
$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.
521522
$start = 0; // int | Pagination start
522523
$limit = 56; // int | Items shown per page
523524
$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
527528
$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
528529
$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
529530
$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
530532

531533
try {
532-
$result = $apiInstance->getNotes($user_id, $lead_id, $deal_id, $person_id, $org_id, $start, $limit, $sort, $start_date, $end_date, $pinned_to_lead_flag, $pinned_to_deal_flag, $pinned_to_organization_flag, $pinned_to_person_flag);
534+
$result = $apiInstance->getNotes($user_id, $lead_id, $deal_id, $person_id, $org_id, $project_id, $start, $limit, $sort, $start_date, $end_date, $pinned_to_lead_flag, $pinned_to_deal_flag, $pinned_to_organization_flag, $pinned_to_person_flag, $pinned_to_project_flag);
533535
print_r($result);
534536
} catch (Exception $e) {
535537
echo 'Exception when calling NotesApi->getNotes: ', $e->getMessage(), PHP_EOL;
@@ -545,6 +547,7 @@ Name | Type | Description | Notes
545547
**deal_id** | **int**| The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. | [optional]
546548
**person_id** | **int**| The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. | [optional]
547549
**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]
548551
**start** | **int**| Pagination start | [optional] [default to 0]
549552
**limit** | **int**| Items shown per page | [optional]
550553
**sort** | **string**| The field names and sorting mode separated by a comma (&#x60;field_name_1 ASC&#x60;, &#x60;field_name_2 DESC&#x60;). Only first-level field keys are supported (no nested keys). Supported fields: &#x60;id&#x60;, &#x60;user_id&#x60;, &#x60;deal_id&#x60;, &#x60;person_id&#x60;, &#x60;org_id&#x60;, &#x60;content&#x60;, &#x60;add_time&#x60;, &#x60;update_time&#x60;. | [optional]
@@ -554,6 +557,7 @@ Name | Type | Description | Notes
554557
**pinned_to_deal_flag** | [**\Pipedrive\versions\v1\Model\NumberBoolean**](../Model/.md)| If set, the results are filtered by note to deal pinning state | [optional]
555558
**pinned_to_organization_flag** | [**\Pipedrive\versions\v1\Model\NumberBoolean**](../Model/.md)| If set, the results are filtered by note to organization pinning state | [optional]
556559
**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]
557561

558562
### Return type
559563

0 commit comments

Comments
 (0)