Hello there! I’m fairly new to using APIs and oauth.
I wrote a script that gets a token using grant_type=client_credentials and then checks on two specific server statuses, texting me if the status changes to UP or DOWN.
It does this every 30 sec, and I’m wondering if it’s worth putting the token in a file and using that until expires_in reaches close-to zero, then refresh it, or if the method I’m using is fine.
Sorry if this is a super-noob question lol