Created
March 11, 2019 13:03
-
-
Save jrbail01/35ee0d0312436779bdab30f76e5dcee6 to your computer and use it in GitHub Desktop.
This file contains 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 | |
ACCESS_KEY = "PLACE YOUR INITIAL STATE ACCESS KEY HERE" | |
BUCKET_KEY = "reqtest1" | |
def streamData(name, value): | |
url = 'https://groker.init.st/api/events?accessKey=' + ACCESS_KEY + '&bucketKey=' + BUCKET_KEY + '&' + name + '=' + str(value) | |
r = requests.get(url=url) | |
return r | |
r = streamData("myNumber", 4) | |
print r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment