Commit graph

24 commits

Author SHA1 Message Date
Noah Lancien
392c3d77f2 fix: remove toggle optin in customer activation 2025-02-26 17:02:25 +01:00
Noah Lancien
b02282e8a0 fix: save customer optin after it changes in WPCrm 2024-10-22 11:10:07 +02:00
Vincent BRIDIER
d43da6d6a9
fix: LogLevel Enum type 2024-10-18 14:52:25 +02:00
Jérémy Munsch
23fdfca0be
Tests OK 2023-10-05 12:16:43 +02:00
Alexis Gousseau
937a9627a7 WIP: oui 2023-09-15 15:14:26 +02:00
Alexis Gousseau
1f42c1a4d8 client v4 2023-09-11 16:19:10 +02:00
Jérémy Munsch
d7b7c15f83
- update comments to be user friendly
- update changelog
- regen documentation
2022-02-23 11:33:20 +01:00
Jérémy Munsch
7e6efc7d4e
Fixed : WPCrm bootSessionIfNeeded trying to access $_SESSION['wpcrm'] before session was started 2022-02-11 13:08:34 +01:00
Jérémy Munsch
3ac734dbae
Fixed WPCrm now only returns a boolean 2022-02-10 17:18:30 +01:00
Jérémy Munsch
61aeca5e31
WPCrm readd forceLogin() 2022-02-10 16:43:58 +01:00
Jérémy Munsch
647ac8acb5
WpCrm::makeApiV2Call Change LogLevel on error from Emerge to Critical 2022-02-10 12:32:15 +01: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
8136ac38bd Add Utils::log with enum LogLevel (prefix logs) 2021-09-14 13:44:03 +02:00
Jérémy Munsch
cea32d3a2c session of 15min WPCRM 2021-08-26 14:57:06 +02:00
Jérémy Munsch
84b26d8271 add methods unsetActive user try session timeout 2021-08-25 17:16:49 +02:00
Jérémy Munsch
6ea06b7620 Fix WPCRM saveOrUpdateUserToTable 2021-08-25 14:39:47 +02:00
Jérémy Munsch
71ca142a58 Fix warning for auth fail dont print in log 2021-08-24 11:18:24 +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
363a23659c WPCRM update 2021-08-17 11:03:05 +02:00
Jérémy Munsch
f57e28de03 fix phpcs on WPCRM 2021-08-13 11:12:38 +02:00
Jérémy Munsch
af980de814 fix typo saveOrUpdateUserToTable 2021-08-13 11:06:27 +02:00
Jérémy Munsch
e4e777a1fb FIX WP client queries (missing uuid column ajouté par sebastien sur marie et reglallaalalalal) 2021-08-13 10:45:55 +02:00
Jérémy Munsch
60af192324 Add WPMCRM v2 without test for now 2021-08-12 14:49:27 +02:00