Skip to content

Instantly share code, notes, and snippets.

@jrbail01
Created March 11, 2019 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrbail01/35ee0d0312436779bdab30f76e5dcee6 to your computer and use it in GitHub Desktop.
Save jrbail01/35ee0d0312436779bdab30f76e5dcee6 to your computer and use it in GitHub Desktop.
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