- Fixes #70
- Fixes #35
- Fixed
listsSubscriberto include the entered and modified dates from the user asuser_entered&user_modified
- some cleanup
listsGethas a new paramactive=0/1(default: 0), if 1 it will only get active (non private) listsResponse->SetErrorResponse::outputError&Response::outputErrorMessageaccepts optional extra data
- Implements PR #71
- Added helper function
Response::outputOk(similar to the other output helpers) - Added new settings
restapi_server_headers - Added extra function to format text list
- Added
addUserHistoryWrapperfor betteraddUserHistorysupport- Allow the API to send
server_headersin API call which is used instead of the API ones - (this allows correct IP and other details to be logged)
⚠️ Untested of side effects, nothing known yet (it's just not a nice approach...)⚠️ must be enabled via new setting
- Allow the API to send
- Added various helper functions for
Subscribers
- cmd
addEmailToBlacklist- add email to blacklist
- cmd
subscriberGetWithAttributes- get subscriber, including all it's user attributes as
user_attributes => [...]
- get subscriber, including all it's user attributes as
- cmd
subscriberUpdateExtended- This function is quite heavy but acts similar to the subscribe page
- Allows partial updates of fields
- Supports to send update email, including new email confirm
- List subscription changes won't mess with existing subscriptions (the entered date will be kept if already subscribed!)
- Also handles re-subscribe!
- cmd
subscriberUnsubscribe- add user to blacklist, marks him
blacklist=1and send out an unsubscribe email - does respect
UNSUBSCRIBE_CONFIRMATIONconfig entry
- add user to blacklist, marks him
- cmd
subscriberResendConfirmationEmail- Allow to resend the confirm email
- cmd
subscriberUpdateAttributesExtended- improved function to update/remove user attributes
- 🟥 Incomplete and won't work
- Fix all code documentation comments (including the new added ones) and improve the logic
- fix tests and make it work with php8.2
- add more tests ^^
- implement better attributes handling
- This is not truly a restful plugin, but "gets the job done" for now and is better than nothing
- Status code is usually always 200, regardless of success or error, always check the response
This repository contains the REST API Plugin v2 for phpList 3. It is contained
within the plugins folder, along with respective documentation and
plugin-specific tests.