Comments (4)
@kartikey406 If you look at the DeliverHook class in the readme , you should see an example of a post being made. The code is a reference point. You can modify the example to capture the response into a variable and output or store the status code however you see fit.
from django-rest-hooks.
But thats the example of using celery.what about if i don't want to use celery ..then it return None. yeah we can return status_code instead of none.Can i change it send u a pull request?
from django-rest-hooks.
@kartikey406 You are welcome add a non Celery example alongside the Celery example. I can take a look at a pull request if you make one.
For general guidance: Take a look at the deliver_hook_wrapper method. You can call another function of your own implementation to return the status code once you make the request.
from django-rest-hooks.
@avelis Hi ,Thanks for it.I have gone through the code .As you are saying that deliver_hook_wraper can be customize to use deliver hook wraper we need to add it's deliver path in settings.py of django.But what about when one is using the default options of django-rest-hooks such as model events or any customize events without using deliver hook wrapper .In that case there is no return status code. So what i meant to say let's incorporate all these features to make django-rest-hooks more easy.
from django-rest-hooks.
Related Issues (20)
- Client doesn't use connection pooling.
- Question HOT 2
- Zapier sends 'target_url' in the request and 'target' is expected. HOT 3
- Support for Django 1.10 and future versions? HOT 6
- Add ability to extend and customize the Hook model HOT 9
- Django 2.0 compatibility HOT 6
- Bind hooks to groups or users HOT 4
- Add encryption option to webhooks. HOT 7
- Easy to follow documentation HOT 1
- Using target url's result. HOT 1
- New setting pointing to custom Model HOT 2
- raw_custom_event should share logic with other hooks
- Automatic deployments on PyPI fail because mainteiner does not have verified email HOT 5
- Last release not available through pip HOT 1
- No mention in the README if it works with Django 3 or not. HOT 1
- Fire hook on specific FIELD/s changed rather than any field HOT 1
- Potential for Mis-use HOT 1
- Confusing to use webhooks naming in sample Django REST Framework code HOT 1
- Is this project maintained? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-rest-hooks.