Use requests.delete instead of requests.post
payload = {'some':'data'}
headers = {'content-type': 'application/json'}
url = "https://www.toggl.com/api/v6/" + data_description + ".json"
response = requests.delete(
url,
data=json.dumps(payload),
headers=headers,
auth=HTTPBasicAuth(toggl_token, 'api_token')
)
Related Contents:
- How can I get all the request headers in Django?
- Cron and virtualenv
- Fastest way to get the first object from a queryset in django?
- How can I get the domain name of my site within a Django template?
- How can I enable CORS on Django REST Framework
- Django DB Settings ‘Improperly Configured’ Error
- How to duplicate virtualenv
- ImproperlyConfiguredError about app_name when using namespace in include()
- How do I activate a virtualenv inside PyCharm’s terminal?
- Django Model Field Default Based Off Another Field in Same Model
- Default value for field in Django model
- In Django – Model Inheritance – Does it allow you to override a parent model’s attribute?
- django.db.utils.ProgrammingError: relation already exists
- Django request get parameters
- Generating file to download with Django
- How do I request and process JSON with python?
- Which Model Field to use in Django to store longitude and latitude values?
- Can one use the Django database layer outside of Django?
- Unit testing with django-celery?
- django modifying the request object
- Return the current user with Django Rest Framework
- cannot import name patterns
- Django Template Ternary Operator
- How to expire Django session in 5minutes?
- How to check the TEMPLATE_DEBUG flag in a django template?
- What is the meaning of bind = True keyword in celery?
- Django override save for model only in some cases?
- How can I modify Procfile to run Gunicorn process in a non-standard folder on Heroku?
- Django, filter by specified month and year in date range
- Class views in Django
- Django: Get current user in model save
- Using IntellijIdea within an existing virtualenv
- Django Rest Framework POST Update if existing or create
- Can you migrate backwards to before the first migration in South?
- Python MySQLDB: Get the result of fetchall in a list
- Django cannot import name x [duplicate]
- Django Test Client Method Override Header
- How can I get the object count for a model in Django’s templates?
- Performing a getattr() style lookup in a django template
- How do you reload a Django model module using the interactive interpreter via “manage.py shell”?
- Django admin – inline inlines (or, three model editing at once)
- Generic many-to-many relationships
- No module named django but it is installed
- Ordering admin.ModelAdmin objects in Django Admin
- Postgresql DROP TABLE doesn’t work
- Generating PDFs from SVG input
- Which Python API should be used with Mongo DB and Django
- Best practice for Python & Django constants
- Is django prefetch_related supposed to work with GenericRelation
- Case insensitive urls for Django?