- Added support for Python 3.13
- Dropped support for Python < 3.8
- Added typing annotations overall the library
- Updated doc strings with actual information
- Fixed an issue when the client could send requests with invalid version in the "User-Agent" header
- Changed the type of the
abuse_typesparameter in theclient.get_decisions()method
INCOMPATIBLE CHANGES INTRODUCED IN 6.0.0:
-
Dropped support for Python < 3.8
-
Passing
abuse_typesas a comma-separated string to theclient.get_decisions()is deprecated.Previously,
client.get_decisions()method allowed to passabuse_typesparameter as a comma-separated string e.g.abuse_types="legacy,payment_abuse". This is deprecated now. Starting from 6.0.0 callers must passabuse_typesparameter to theclient.get_decisions()method as a sequence of string literals e.g.abuse_types=("legacy", "payment_abuse"). The same way as it passed to the other client's methods which receiveabuse_typesparameter.
5.6.1 2024-10-08
- Updated implementation to use Basic Authentication instead of passing
API_KEYas a request parameter for the following calls:client.score()client.get_user_score()client.rescore_user()client.unlabel()
5.6.0 2024-05-31
- Added support for a
warningsvalue in thefieldsquery parameter
5.5.1 2024-02-22
- Support for Python 3.12
5.5.0 2023-10-03
- Score percentiles for Score API
5.4.0 2023-07-26
- Support for Verification API
5.3.0 2023-02-03
- Added support for score_percentiles
5.2.0 2022-11-07
- Update PSP Merchant Management API
5.1.0 2022-06-22
- Added return_route_info query parameter
- Fixed decimal amount json serialization bug
5.0.2 2022-01-24
- Fix usage of urllib for Python 2.7
5.0.1 2019-03-07
- Update metadata in setup.py
- Add connection pooling
INCOMPATIBLE CHANGES INTRODUCED IN 5.0.0:
-
Removed support for Python 2.6
-
Fix url encoding for all endpoints
Previously, encoding user ids in URLs was inconsistent between endpoints, encoded for some endpoints, unencoded for others. Additionally, when encoded in the URL path, forward slashes weren't encoded. Callers with workarounds for this bug must remove these workarounds when upgrading to 5.0.0.
-
Improved error handling
Previously, illegal arguments passed to methods like
Client.track()and failed calls resulting from server-side errors both raisedApiExceptions. Illegal arguments validated in the client now raise eitherTypeErrorsorValueErrors. Server-side errors still raiseApiExceptions, andApiExceptionhas been augmented with metadata for handling the error.
- Add support for rescore_user and get_user_score APIs
- Add new query parameter force_workflow_run
- Add get session level decisions in Get Decisions APIs.
- Updated documentation in CHANGES.md and README.md
- Adds support for Sift Science API Version 205, including new
$create_contentand$update_contentformats - V205 APIs are now called -- this is an incompatible change
- Use
version = '204'when constructing the Client to call the previous API version
- Use
- Adds support for content decisions to Decisions API
INCOMPATIBLE CHANGES INTRODUCED IN API V205:
$create_contentand$update_contenthave significantly changed, and the old format will be rejected$send_messageand$submit_reviewevents are no longer valid- V205 improves server-side event data validation. In V204 and earlier, server-side validation accepted some events that did not conform to the published APIs in our developer documentation. V205 does not modify existing event APIs other than those mentioned above, but may reject invalid event data that were previously accepted. Please test your integration on V205 in sandbox before using in production.
- Add session level decisions in Apply Decisions APIs.
- Add support for filtering get decisions by entity type session.
- Adds support for Get, Apply Decisions APIs
- Adds support for v204 of Sift Science's APIs
- Adds Workflow Status API, User Decisions API, Order Decisions API
- V204 APIs are now called by default -- this is an incompatible change (use version='203' to call the previous API version)
- Fixes bug parsing chunked HTTP responses
- Major version bump; client APIs have changed to raise exceptions in the case of API errors to be more Pythonic
- Added Python 2.6 compatibility
- Added Travis CI
- Minor bug fixes
- Added Unlabel functionality
- Minor bug fixes.
- Added timeout parameter to track, score, and label functions.
- Added Module-scoped API key.
- Minor documentation updates.
- Added Label and Score functions.
- Added Python 3 compatibility.
- Bump default API version to v203.
- Just the Python REST client itself.