Skip to content

Instantly share code, notes, and snippets.

@christophermark
Last active October 6, 2016 22:19
Show Gist options
  • Save christophermark/e760d50f275066bb44cac35f7a7db248 to your computer and use it in GitHub Desktop.
Save christophermark/e760d50f275066bb44cac35f7a7db248 to your computer and use it in GitHub Desktop.
Robin Sample Request (Python)
# This is written for PYTHON 3
# Don't forget to install requests package
import requests
import json
spaceId = 'your space ID here'
apiToken = 'your api token here'
url = 'https://api.robinpowered.com/v1.0/spaces/{}/presence'.format(spaceId)
# View all the presence in the space
response = requests.get(
url,
headers={'content-type':'application/json', 'Authorization': 'Access-Token {}'.format(apiToken)}
)
print(response.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment