Get Followed Streams - invalid oauth token problems

Thank you for the link Barry - so the logic of continuously retrieving data would be;

// Do one time

  • create OAuth access token once

// start the loop

  • validate the token (regularly?)
  • retrieve the data of current streamers online
    // end loop

This will prevent Twitch from punitive action, such as revoking my developer’s API key or throttling the application’s performance?