-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Callback when message has been received #51
Comments
Why not just define this logic in the post receive command? #!/usr/bin/env python3
import requests
payload = dict(
id='1',
access_token='xyz'
)
r = requests.post('http://127.0.0.1/url/to/post', data=payload)
# Put additional post receive logic here And set |
Thanks for your answer. |
It would be part of your repo so I don't see it as an external script. I dont see a reason to implement callbacks as it can be handled in this command. |
I have the same question here. |
I guess with callbacks you can have some pros, for example a return code to refuse the message or the chance to handle the content of the message directly or change headers data too before saving. |
Hi @abhishek-ram , @bluebytech , Could you please review it and share your suggestions? with the PR, the integration can be done in another Django apps in this way instead of defining an external command
Thanks, |
Hi,
There is a more elegant way to trigger a received message event without monkey patching 'run_post_receive' like I did below?
The text was updated successfully, but these errors were encountered: