Created
December 11, 2016 18:44
-
-
Save vi3k6i5/f85b929d9680fca9ad4f6d8d694a0ab4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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