Skip to content

Instantly share code, notes, and snippets.

@vi3k6i5
Created December 11, 2016 18:46
Show Gist options
  • Save vi3k6i5/be04f8b68169f5fcf3b39bdc80a8caf7 to your computer and use it in GitHub Desktop.
Save vi3k6i5/be04f8b68169f5fcf3b39bdc80a8caf7 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