Auto-auth API call for windows service?

Asked May 16, 2020·1 reply·Last activity 6 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I'm writing an automated service that sends an API call every morning to get an initial list of items. The service then listens throughout the rest of the day for callbacks from the API with updates about that list of items. When and update comes in, I'd like to send a single message through Nightbot with the update about the item.

Is it possible to permanently approve an application access to my Nightbot instead of having to manually approve it each time?

1 reply

Once you have a Nightbot authorization token they are valid for 30 days, until needing to be refreshed. Checking and storing this can allow for less authorization pages.