Skip to content

Commit fa280c0

Browse files
chore(release): 2.0.0 [skip ci]
## [2.0.0](v1.2.2...v2.0.0) (2023-06-06) ### ⚠ BREAKING CHANGES * For `getVisits` method `$before` argument is deprecated Use `$pagination_key` instead. ### Features * update schema with correct `IpLocation` format and doc updates ([0318b55](0318b55))
1 parent ac87f7d commit fa280c0

File tree

6 files changed

+21
-9
lines changed

6 files changed

+21
-9
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## [2.0.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v1.2.2...v2.0.0) (2023-06-06)
2+
3+
4+
### ⚠ BREAKING CHANGES
5+
6+
* For `getVisits` method `$before` argument is deprecated
7+
Use `$pagination_key` instead.
8+
9+
### Features
10+
11+
* update schema with correct `IpLocation` format and doc updates ([0318b55](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/commit/0318b55599ede2e10d6ce9ec48c409d5fc605f03))
12+
113
## [1.2.2](https://github.com/fingerprintjs/fingerprint-pro-server-api-php-sdk/compare/v1.2.1...v1.2.2) (2023-05-26)
214

315

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
3838

3939
- API version: 3
40-
- Package version: 1.2.2
40+
- Package version: 2.0.0
4141
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
4242

4343
## Requirements
@@ -84,7 +84,7 @@ const FPJS_LINKED_ID = "linkedId";
8484
// An optional parameter limiting scanned results
8585
const LIMIT = 10;
8686
// An optional parameter used to paginate results, see lastTimestamp
87-
const BEFORE = 1;
87+
const PAGINATION_KEY = "1683900801733.Ogvu1j";
8888

8989
// Import Fingerprint Pro Classes and Guzzle Http Client
9090
use Fingerprint\ServerAPI\Api\FingerprintApi;
@@ -127,7 +127,7 @@ try {
127127
// Get a specific visitor's all visits with a linkedId
128128
try {
129129
// Fetch all visits with a given visitorId, with a page limit, skipping the first visit
130-
$response = $client->getVisits(FPJS_VISITOR_ID, null, FPJS_LINKED_ID, LIMIT, BEFORE);
130+
$response = $client->getVisits(FPJS_VISITOR_ID, null, FPJS_LINKED_ID, LIMIT, PAGINATION_KEY);
131131
echo "<pre>" . $response->__toString() . "</pre>";
132132
} catch (Exception $e) {
133133
echo 'Exception when calling FingerprintApi->getEvent: ', $e->getMessage(), PHP_EOL;
@@ -136,7 +136,7 @@ try {
136136
// Use all the parameters on getVisits
137137
try {
138138
// Fetch the visitor's all visits with a given requestId and linkedId with a page limit while skipping the first visit
139-
$response = $client->getVisits(FPJS_VISITOR_ID, FPJS_REQUEST_ID, FPJS_LINKED_ID, LIMIT, BEFORE);
139+
$response = $client->getVisits(FPJS_VISITOR_ID, FPJS_REQUEST_ID, FPJS_LINKED_ID, LIMIT, PAGINATION_KEY);
140140
echo "<pre>" . $response->__toString() . "</pre>";
141141
} catch (Exception $e) {
142142
echo 'Exception when calling FingerprintApi->getEvent: ', $e->getMessage(), PHP_EOL;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fingerprint/fingerprint-pro-server-api-sdk",
3-
"version": "1.2.2",
3+
"version": "2.0.0",
44
"description": "Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.",
55
"keywords": [
66
"swagger",

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"gitUserId": "fingerprintjs",
99
"gitRepoId": "fingerprint-pro-server-api-php-sdk",
1010
"description": "Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.",
11-
"artifactVersion": "1.2.2"
11+
"artifactVersion": "2.0.0"
1212
}

src/Api/FingerprintApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class FingerprintApi
6363
*/
6464
protected $headerSelector;
6565

66-
protected $integration_info = 'fingerprint-pro-server-php-sdk/1.2.2';
66+
protected $integration_info = 'fingerprint-pro-server-php-sdk/2.0.0';
6767

6868
/**
6969
* @param ClientInterface $client

src/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class Configuration
9090
*
9191
* @var string
9292
*/
93-
protected $userAgent = 'Swagger-Codegen/1.2.2/php';
93+
protected $userAgent = 'Swagger-Codegen/2.0.0/php';
9494

9595
/**
9696
* Debug switch (default set to false)
@@ -431,7 +431,7 @@ public static function toDebugReport()
431431
$report .= ' OS: ' . php_uname() . PHP_EOL;
432432
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
433433
$report .= ' OpenAPI Spec Version: 3' . PHP_EOL;
434-
$report .= ' SDK Package Version: 1.2.2' . PHP_EOL;
434+
$report .= ' SDK Package Version: 2.0.0' . PHP_EOL;
435435
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
436436

437437
return $report;

0 commit comments

Comments
 (0)