File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
7
## [ Unreleased]
8
- ### Changed
9
- - Send token in the ` x-api-token ` header instead of ` api_token ` query parameter
10
8
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
+ ```
11
20
12
21
## [ 10.0.0] ( https://github.com/pipedrive/client-php/compare/9.0.0...10.0.0 ) (2025-05-06)
13
22
Original file line number Diff line number Diff line change @@ -111,11 +111,11 @@ class Configuration
111
111
*/
112
112
protected string $ host = 'https://api.pipedrive.com/v1 ' ;
113
113
/**
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
115
115
*
116
116
* @var string
117
117
*/
118
- protected string $ userAgent = 'Pipedrive-SDK-PHP-8 .x ' ;
118
+ protected string $ userAgent = 'Pipedrive-SDK-PHP-11 .x ' ;
119
119
120
120
/**
121
121
* Debug switch (default set to false)
Original file line number Diff line number Diff line change @@ -111,11 +111,11 @@ class Configuration
111
111
*/
112
112
protected string $ host = 'https://api.pipedrive.com/api/v2 ' ;
113
113
/**
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
115
115
*
116
116
* @var string
117
117
*/
118
- protected string $ userAgent = 'Pipedrive-SDK-PHP-8 .x ' ;
118
+ protected string $ userAgent = 'Pipedrive-SDK-PHP-11 .x ' ;
119
119
120
120
/**
121
121
* Debug switch (default set to false)
You can’t perform that action at this time.
0 commit comments