Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Habitica: adding a todo with python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests, json, os
json_payload = {
"text": "Test Task",
"type": "todo",
"alias": "hab-api-tasks",
"notes": "This is a test task that was set with the python requests module.",
"priority": 2,
headers = {
response ="", json=json_payload, headers=headers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment