Skip to content

Instantly share code, notes, and snippets.

@hermpheus
Created March 5, 2015 18:52
Show Gist options
  • Save hermpheus/df40ba2f99a46a70860b to your computer and use it in GitHub Desktop.
Save hermpheus/df40ba2f99a46a70860b to your computer and use it in GitHub Desktop.
Create HabitRPG Task from CLI
#!/bin/sh
curl -X POST -H "Content-Type:application/json" -H "x-api-key: X" -H "x-api-user: X" https://habitrpg.com/api/v2/user/tasks/ -d "{\"text\":\"$1\",\"type\":\"todo\",\"value\":\"0\", \"notes\":\"\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment