Commit graph

8 commits

Author SHA1 Message Date
kristuff
d1d9cf9ad0 v0.9.14
**Changes**
- **New**: the `ApiHandler` (and `QuietApiHandler`) constructor takes now a **timeout** in third parameter. The timeout is expressed in **milliseconds** .  The timeout will apply to all API request methods (will raise exception if reached out). Default is **0** (no timeout).
- Formatting
2021-12-06 21:40:39 +01:00
kristuff
3ab67950a1 v0.9.13 2021-09-18 21:42:24 +02:00
kristuff
37b0a2eaa9 v0.9.12
**Fixed**
- Incorrect return type in `ApiResponse::getObject()` method (bug introduced in v0.9.8 with PHP strict types)
- cleaning, typos
2021-07-04 13:09:24 +02:00
kristuff
adff27d86d v0.9.11
**Fixed**
- getCategoryIdByName and getCategoryNameById now return string (instead array)
- IoT Targeted report category now named iot (instead of oit)
2021-02-23 20:31:53 +01:00
kristuff
77c2857eb8 v0.9.10
**Changed**
- report categories methods related now static
- `SilentApiHandler` class renamed `QuietApiHandler` **break change**
- new static method `ApiResponse::createErrorResponse`
2021-01-29 20:30:12 +01:00
kristuff
3c5c7155c2 v0.9.9
**Added**
- better exception handling with new class `SilentApiHandler`: to not raise any exception during API request but instead return an `ApiResponse` with errors
- version constant
- `ApiReponse` has new `errors()` and `hasError()` methods
2021-01-17 19:09:15 +01:00
kristuff
fa42dafc36 v0.9.8
**Added**
- ApiResponse class is now the return type for all API endpoint methods **break change**
- New parameter confidenceScore in blacklist() method (suscribers feature)

**Changed**
- method loadFromConfig and json helper removed (moved to client) **break change**
- field userId removed (not used). ApiHandler constructor changed **break change**
- `clear()` and `getBlacklist()` method renamed to `clearAddress()` and `blacklist()` (all method names match now api endpoint in camel case) **break change**
- scrict types
2021-01-16 18:28:11 +01:00
kristuff
1e7e1eb87b v0.9.7
**Added**
- support for bulk-report request (send cvs file)
2021-01-09 11:26:58 +01:00
Renamed from lib/ApiDefintion.php (Browse further)