Repository navigation
v7.0.0-beta.1
Pre-release
Pre-release
·
221 commits
to main
since this release
Major Changes
-
Migrate to Server API v4.
Breaking Changes
- Flatten event structure. Access fields directly instead of through
productswrapper/container. - Remove
getVisitsandgetRelatedVisitorsendpoints (usesearchEventsinstead). - Remove deprecated v3 models (webhook models, product wrapper models, etc.).
- Rename
getEventparameter$request_idto$event_id. Return type changed fromarraytoEvent. - Change
updateEventparameter order and body class (EventsUpdateRequest→EventUpdate). Return type changed fromarraytovoid. HTTP method changed from PUT to PATCH. - Change
searchEventsreturn type fromarraytoEventSearch. new search parameters added. - Change
deleteVisitorDatareturn type fromarraytovoid. - Require API key in
Configurationconstructor:new Configuration(string $apiKey). RemovegetDefaultConfiguration()andsetDefaultConfiguration(). - Simplify
setApiKey/getApiKeyto single-key (no identifier). Remove unnecessarysetApiKeyPrefix,setAccessToken,setUsername,setPasswordmethods. - Switch authentication from API key header to
Authorization: Bearertoken. - Change all JSON serialization keys from camelCase to snake_case.
- Change
ErrorCodeenum values from PascalCase to snake_case. - Append
/v4to all region base URLs. - Changed method return signature of operations.
Migration Guide
Response/Model structure:
- $event->getProducts()->getIdentification()->getData()->getVisitorId() + $event->getIdentification()->getVisitorId()
Configuration:
- $config = Configuration::getDefaultConfiguration('secret-api-key'); + $config = new Configuration('secret-api-key');
Region parameter:
- $config = Configuration::getDefaultConfiguration('key', Configuration::REGION_EUROPE); + $config = new Configuration('key', Configuration::REGION_EUROPE);
New operation return format:
- list($event, $response) = $api->getEvent($requestId); + $event = $api->getEvent($eventId);
If you need raw response:
- list($event, $response) = $api->getEvent($requestId); + list($event, $response) = $api->getEventWithHttpInfo($eventId);
Update event:
- $body = new EventsUpdateRequest(['tag' => ['key' => 'value']]); - $api->updateEvent($body, $requestId); + $body = new EventUpdate(['tags' => ['key' => 'value']]); + $api->updateEvent($eventId, $body);
New Features
- New v4 models:
BotInfo,Canvas,Emoji,EventRuleAction,RawDeviceAttributes,TamperingDetails, ... - New enum models:
BotResult,TamperingConfidence,VpnConfidence,ProxyConfidence,RuleActionType, ... - New
WithHttpInfomethod variants for all operations. Each operation now exposes four methods:{operationId}(),{operationId}WithHttpInfo(),{operationId}Async(),{operationId}AsyncWithHttpInfo(). - mTLS support with
setCertFile()andsetKeyFile()onConfiguration. (67ac090)
- Flatten event structure. Access fields directly instead of through
-
Drop PHP 8.1 support. Minimum required PHP version is now 8.2. (72432d3)
-
Changed package name to
fingerprint/server-sdkBREAKING CHANGE:
- Update the composer dependency to
fingerprint/server-sdk - Update all
usestatements to the new namespaceFingerprint\ServerSdk
MIGRATION GUIDE:
Replace
composer.jsondependency:"require": { - "fingerprint/fingerprint-pro-server-api-sdk": "^6.10.0" + "fingerprint/server-sdk": "^7.0.0" }Replace all
usestatements with the new namespace:-use Fingerprint\ServerAPI\Configuration; +use Fingerprint\ServerSdk\Configuration;
The above example applies to all
Fingerprint\ServerAPIreferences. (c72108a) - Update the composer dependency to