https://github.com/whojarr/wordpress-wp-webhooks/
Contact: David Hunter dhunter@digitalcreation.co.nz
Copyright (C) 2021 Digital Creation Ltd
For license information, see LICENSE
serverless framework https://www.serverless.com/
yarn https://classic.yarnpkg.com/en/
python 3.8 (i use pyenv below to meet this requirement)
poetry https://python-poetry.org/
pyenv https://github.com/pyenv/pyenv (option to use the version in .python-version automatically)
poetry install
poetry shell
sls wsgi serve -p 8000
yarn install
setup the required parameters in System Manager Parameter Store
/wordpress-wp-webhooks/${self:provider.stage}/teams_url
/wordpress-wp-webhooks/${self:provider.stage}/apikey
/wordpress-wp-webhooks/${self:provider.stage}/domain_name
e.g. /wordpress-wp-webhooks/dev/teams_url
e.g. /wordpress-wp-webhooks/someone/teams_url
sls deploy
or
AWS_PROFILE=someone sls deploy --stage someone
-
Detect and handle other message types in addition to user_login
-
Complete documentation for WP Webhooks configuration