Last active
October 6, 2016 22:19
-
-
Save christophermark/e760d50f275066bb44cac35f7a7db248 to your computer and use it in GitHub Desktop.
Robin Sample Request (Python)
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
# 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