Commit graph

38 commits

Author SHA1 Message Date
kristuff
d7b635875a v1.1
- Fixed: Update email pattern in `cleanMessage()` method to handle local addresses without TLD and to allow using the caracter `@` in custom message. Close #4
2022-10-06 00:16:16 +02:00
kristuff
af62240932 Update email pattern in cleanMessage() method
Update email pattern to handle local addresses without TLD and to allow using the caracter `@` in custom message. Close #4
2022-10-06 00:14:00 +02:00
kristuff
5639f1813a v1.0 2022-01-26 22:24:24 +01:00
kristuff
dc30007818 v0.9.15
**Changes**
- **New** `ApiHandler::setTimeout(int $timeout)` method allows to change default timeout before any API request. Timeout is expressed in milliseconds. Overwrites the value passed in constructor, useful when performing multiple queries with same handler but different timeout.
2021-12-08 20:42:33 +01:00
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
c4b5c65598 Fix #3
Check *properly* if property exists to prevent PHP notice.
2021-09-18 21:41:42 +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
kristuff
60d42db74c Update README.md 2021-01-08 19:33:24 +01:00
kristuff
cd48341f1b v0.9.6
**Fixed**
- clear method is broken in 0.9.5.
2021-01-08 19:12:48 +01:00
kristuff
1a882c0155 v0.9.6
**Fixed**
- clear method is broken in 0.9.5.
2021-01-08 16:31:43 +01:00
kristuff
ed9e4bd8fb v0.9.5
**Added**
- Support for clear address request (remove own report for a given IP address)

**Changed**
- internal refactoring
2021-01-08 15:51:29 +01:00
kristuff
2e21e7a490 v0.9.4 2021-01-08 10:15:18 +01:00
kristuff
6140da20ec v0.9.4
**Added**
- support for check-block request

**changed**
- internal refactoring
2021-01-08 10:02:09 +01:00
kristuff
9034c45536 v0.9.3
**Added**
- Blacklist request: set limit (depending on plan), optional plain text

**break change**
- rename class ApiManager to ApiHandler
- parameter day in check request is now type int
- commands name changes (l to L, g to G)
2021-01-07 22:00:18 +01:00
kristuff
c5811c73b6 v0.9.2 2020-06-28 22:02:10 +02:00
kristuff
a94c99fee2 v0.9.2 2020-06-28 21:43:49 +02:00
kristuff
368b7b4d75 v0.9.2 2020-06-28 21:42:34 +02:00
kristuff
3f5ea52b1e Handle comment max length 2020-06-28 20:45:54 +02:00
kristuff
2e8041d6d1 fix clean message process 2020-06-28 20:34:51 +02:00
kristuff
d3828776bb v0.9.1 2020-06-27 12:24:48 +02:00
kristuff
a3949e7916 fix 2020-06-27 12:23:32 +02:00
kristuff
5a3fc93491 v0.9.0 2020-06-27 11:42:55 +02:00
kristuff
bca2095bc6 Auto cleaning report message 2020-06-27 11:41:10 +02:00
kristuff
eb4e1d6d69 refactoring 2020-06-27 11:39:08 +02:00
kristuff
9a97e0eee7 fix hack cat status 2020-06-27 11:38:42 +02:00
kristuff
fa238f11a7 v0.2 2020-05-28 22:44:59 +02:00
kristuff
1c1fe7c58e initial commit 2020-05-15 15:51:24 +02:00
kristuff
d17b5e1739 initial commit 2020-05-15 11:29:55 +02:00
kristuff
eff0ac03cb initial commit 2020-05-14 21:23:51 +02:00
kristuff
2048183464 initial commit 2020-05-14 20:44:28 +02:00
kristuff
42e78f935b initial commit 2020-05-14 20:43:04 +02:00
kristuff
78ed771bcb initial commit 2020-05-14 20:40:32 +02:00