Skip to content

Instantly share code, notes, and snippets.

@vi3k6i5
Created December 11, 2016 18:44
Show Gist options
  • Save vi3k6i5/f85b929d9680fca9ad4f6d8d694a0ab4 to your computer and use it in GitHub Desktop.
Save vi3k6i5/f85b929d9680fca9ad4f6d8d694a0ab4 to your computer and use it in GitHub Desktop.
import requests
import json
resp = requests.post('https://api.thingspeak.com/update.json',
data=json.dumps({"api_key"="XXXXXXXXXXXXXXXX",
"field1"=73,
"field2"=66}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment