- Add support for Django 4.1, 4.2; Python 3.11 (PR #27)
- Add support for Django 4.0 (PR #26)
- Changed setup.py so that it does not require pytest-runner unless something test-related is being invoked, for example setup.py pytest
The
href
of incoming webhook events is no longer validated. Rejecting an event with an unexpectedhref
value would simply have resulted in repeated attempts to deliver that event again.Incoming webhooks with incorrect signatures will be rejected by default and an error will be logged. If you wish to accept webhooks with incorrect signatures (and simply log a warning), set
HOOKED_FAIL_ON_BAD_SIGNATURE
toFalse
If you believe that your webhook receiver is incorrectly rejecting webhooks, please ensure that your webhook subscription is using the same application key as is defined in your webhook receiver's
GAPI_APPLICATION_KEY
setting.- Settings changes:
GAPI_API_ROOT
is no longer used by django-gapi-hookedHOOKED_FAIL_ON_BAD_SIGNATURE
defaults toTrue
instead ofFalse
- Use exec to read the hooked/version.py file in order to load in the __version__ variable in setup.py (via PRs #15 / #16)
- Add Travis CI config file to enable testing on Travis (via PR #17)
- Add the travis build status to the README.md file
Add Python 3.5+ support (maintaining Python 2.7 support)
Add MIT License, begin preparing
setup.py
for a release on PyPIAdd resource-name-based dynamic dispatch to
WebhookReceiverView
(e.g you can define ahandle_profiles
method on your subclass and it will handleprofiles
events without having to write your own routing code, see README for examples)Add a (presently very small) test suite and a
tox.ini
to test multiple Python/Django versions- Settings changes:
GAPI_API_ROOT
is no longer required, it defaults to
"https://rest.gadventures.com"
GAPI_APPLICATION_KEY
is now requiredGAPI_WEBHOOKS_VALIDATION_KEY
is no longer used at all (we compute this
value from your application key)
- Raise exceptions in
clean_events
instead of returning them (the caller is expecting a list of webhook events, not an exception) - Updated README to explain required settings
- Do not reject webhook events whose
data.href
contain an id and a variation id (to accommodateitineraries
resources)
- First tagged release