In the article here: Management API Access Tokens it describes the general steps of automating the process of generating a new API token for the management API. But there’s no shown example which leads to a lot of questions.
(I have a Node API running on Heroku):
- How will I automate this process? Do I get my backend to run a script (with the code provided in the link) at a 24-hour interval?
- Do I keep the API Token stored as an environment variable? Heroku is said to restart on change of environment variables
A full example would make this a lot more clear.