Thank Antony,
On 28/02/2018 15:50, Anthony wrote:
The webhook request headers will be in
request.env.http_x_wc_webhook_[specific header] (e.g.,
request.env.http_x_wc_webhook_signature).
ok got it!
It looks like WooCommerce makes a POST request, so the values posted
should end up in request.post_vars.
maybe I don't understand... what I think I need to check is the raw body
of the request... isn't it? How should I check the request.post_vars?
Isn't it a dictionary or a Storage object?
As an aside, you can probably simplify your code to just be a function
rather than a class,
ok I agree
and I don't think there is much gained by putting it inside
ok... but why not?
an @auth.requires decorator -- just run the relevant code directly in
the listenToHooks function.
Anthony
Cheers
Manuele
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.