Skip to content

Commit f0f788a

Browse files
committed
Release v11.0.0
1 parent 6228882 commit f0f788a

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ 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-
### Changed
9-
- Send token in the `x-api-token` header instead of `api_token` query parameter
108

9+
## [11.0.0](https://github.com/pipedrive/client-php/compare/10.0.0...11.0.0) (2025-05-09)
10+
11+
### Changed
12+
- **BREAKING CHANGE.** The API token is sent in the `x-api-token` header instead of `api_token` query parameter.
13+
The API key configuration must be updated as follows:
14+
```php
15+
// previous versions
16+
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('api_token', 'YOUR_API_KEY');
17+
// starting from this version
18+
$config = (new Pipedrive\versions\v1\Configuration())->setApiKey('x-api-token', 'YOUR_API_KEY');
19+
```
1120

1221
## [10.0.0](https://github.com/pipedrive/client-php/compare/9.0.0...10.0.0) (2025-05-06)
1322

lib/versions/v1/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ class Configuration
111111
*/
112112
protected string $host = 'https://api.pipedrive.com/v1';
113113
/**
114-
* User agent of the HTTP request, set to "Pipedrive-SDK-PHP-8.x" by default
114+
* User agent of the HTTP request, set to "Pipedrive-SDK-PHP-11.x" by default
115115
*
116116
* @var string
117117
*/
118-
protected string $userAgent = 'Pipedrive-SDK-PHP-8.x';
118+
protected string $userAgent = 'Pipedrive-SDK-PHP-11.x';
119119

120120
/**
121121
* Debug switch (default set to false)

lib/versions/v2/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ class Configuration
111111
*/
112112
protected string $host = 'https://api.pipedrive.com/api/v2';
113113
/**
114-
* User agent of the HTTP request, set to "Pipedrive-SDK-PHP-8.x" by default
114+
* User agent of the HTTP request, set to "Pipedrive-SDK-PHP-11.x" by default
115115
*
116116
* @var string
117117
*/
118-
protected string $userAgent = 'Pipedrive-SDK-PHP-8.x';
118+
protected string $userAgent = 'Pipedrive-SDK-PHP-11.x';
119119

120120
/**
121121
* Debug switch (default set to false)

0 commit comments

Comments
 (0)