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