You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we want to get the streetlight data without using Postman (and we do!), we need code that will do the authentication and store the daily token. Maybe we should save the token as a file in this repo, and if it's been more than 24 hours since the file was last modified, this process would be run again automatically? So I guess the code would need to do these two things:
Check the age of the token file, if > 24hrs, get new token
Use the token file to generate a header that will be used for GET requests
The text was updated successfully, but these errors were encountered:
It's probably easiest get a token as the first step of getting any data. That way we don't need to manage refreshing a token when it expires. This is the pattern that the example code from CityIQ follows.
If we want to get the streetlight data without using Postman (and we do!), we need code that will do the authentication and store the daily token. Maybe we should save the token as a file in this repo, and if it's been more than 24 hours since the file was last modified, this process would be run again automatically? So I guess the code would need to do these two things:
The text was updated successfully, but these errors were encountered: