Commit graph

20 commits

Author SHA1 Message Date
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
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
390033d3da
generate version and update changelog
bump to 2.2.3
2021-10-26 12:50:09 +02:00
Jérémy Munsch
e08367ae7f
update client 2021-10-20 15:28:36 +02:00
Jérémy Munsch
c9572314aa
Changed Arcadia mails, add customer parameters for these calls 2021-10-18 09:02:31 +02:00
Jérémy Munsch
b4982ab41b
client:generate 2021-09-21 12:16:17 +02:00
Jérémy Munsch
9aa309f57b bump version to 2.1.7 2021-09-14 11:19:03 +02:00
Jérémy Munsch
823228aa54 bump to 2.1.6 2021-09-07 15:35:03 +02:00
Jérémy Munsch
b208c78b97 bump to 2.1.5 2021-08-26 14:58:52 +02:00
Jérémy Munsch
fef0c4b603 bump version to 2.1.1 2021-08-24 08:32:12 +02:00
Jérémy Munsch
201f4a3ecd Client version 2.1.0
Mostly fix WPCrm and WPCrmUser
2021-08-20 17:52:34 +02:00
Jérémy Munsch
b1d3c5fa5b bump client to 2.0.14
set address as required
2021-08-18 08:48:33 +02:00
Jérémy Munsch
e302a74215 bump to 2.0.12 2021-08-17 11:03:05 +02:00
Jérémy Munsch
1fcbd7ad55 bump version to 2.0.11 2021-08-17 11:03:05 +02:00
Jérémy Munsch
f7e4ddbf7e bump to 2.0.10 2021-08-17 11:03:05 +02:00
Jérémy Munsch
8277de42c1 bump to 2.0.9 2021-08-16 08:07:40 +02:00
Jérémy Munsch
aeb2bda619 Fix enums
bump to 2.0.8
2021-08-13 12:35:35 +02:00
Jérémy Munsch
546c64f027 bump kwaadpepper/enum to V2 2021-08-13 12:24:34 +02:00
Jérémy Munsch
a336b3bfca V 2.0.1 PHP DOC 2021-08-11 17:36:59 +02:00
Jérémy Munsch
6e04439a0b V2 Working client with some documentation 2021-08-09 09:18:46 +02:00