Last active
August 1, 2020 17:34
-
-
Save Neumi/bc1d30d23f511a63cdf71ccaff3b320c 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 | |
headers = { | |
'Accept': 'application/json', | |
'Authorization': 'key ttn-account-v2.not-a-real-key-blabla-booboo', | |
} | |
params = ( | |
('last', '2d'), | |
) | |
response = requests.get('https://APPLICATION_NAME.data.thethingsnetwork.org/api/v2/query', headers=headers, params=params) | |
print(response.content()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment