Skip to content

Tool needed: Java code that gets the daily token needed to query the CityIQ API #3

@mwesterfield

Description

@mwesterfield

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:

  1. Check the age of the token file, if > 24hrs, get new token
  2. Use the token file to generate a header that will be used for GET requests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions