Commit graph

14 commits

Author SHA1 Message Date
Jérémy Munsch
b15e9bcb59
SingleOptin add unsetStatusWithHashcode method 2023-06-28 15:13:35 +02:00
f36447854b
API V3 UPDATE
This removes api authentication with token in favor of signature method.
Refactored code and clean up. It add more unit test plus code coverage
in test/coverage.

- Added   : mardown documentation.
- Changed : model Stats::getQuestionStats  to pass question as route parameter
- Changed : now requests need to have a signature generated with a private key (crm password) using hmac sha256 wrapping url, method and parameters
- Changed : now timestamp will timeout if request is slower than "timestampTimeout", this means crm will reject the request
- Changed : throw ValidationException s instead of TypeErrors
- Changed : timestamp has to be send in request with a DateTime format, it also has to a UTC value
- Fixed   : Change WPCRM dynamic session key, this could prevent spoofing session in some cases.
- Fixed   : closure validation
- Fixed   : model mutator not catching reflectionException
- Fixed   : really send json request using Guzzle internal lib methods.
- Removed : Api AUTH system with api token
- Removed : ApiError::needAuth
- Removed : composer vlucas/dotenv, .env file is not handled any more.
- Removed : LoginException
- Removed : memcached dependency
- Removed : need of memcached
- Removed : unused service provider
- Removed : WpCrm::forceLogin
- Removed : WpCrm::sendArcadiaMailDefault
- Removed : WpCrm::sendArcadiaMailGame
- Updated : PHPCS rules, phpcs fixes and refactored code
2021-12-31 17:00:55 +01:00
94db0de47b
phpcs pass 2021-12-06 00:16:13 +01:00
Jérémy Munsch
3889be79aa
Hotfix for LG unconsistant data (skip validation, respect sometimes validation) 2021-11-30 15:14:46 +01:00
Jérémy Munsch
9a3f1188b4
Add Stats model with api call
Bump to version 2.3.0
update changelog
2021-11-05 15:09:24 +01:00
Jérémy Munsch
1975edaa6c
Utils.php fix getResquest method 2021-10-18 09:01:05 +02:00
Jérémy Munsch
93950cd75e
Utils::makeValidator fix typo min rule 2021-10-15 12:10:07 +02:00
Jérémy Munsch
103b8bb590
fix fill method on CrmClient Model 2021-10-14 11:46:11 +02:00
Jérémy Munsch
60da6e6dcb Add some comment on Utils 2021-09-14 14:23:18 +02:00
Jérémy Munsch
8136ac38bd Add Utils::log with enum LogLevel (prefix logs) 2021-09-14 13:44:03 +02:00
Jérémy Munsch
2d0866ad74 fix client containSymbol validate not accepting underscores 2021-09-07 14:41:16 +02:00
Jérémy Munsch
40416acabc password validation with translations for fields validations 2021-08-17 11:03:05 +02:00
Jérémy Munsch
ee520a8168 Remove illuminate dependencies
Add  respect/validation
2021-08-13 10:45:55 +02:00
Jérémy Munsch
6e04439a0b V2 Working client with some documentation 2021-08-09 09:18:46 +02:00