What you’re trying to do is still possible - it is based on the environment you are in:
- If you already have your code running on a Server, it should be trivial to access it remotely and thus utilize the Authorization Code Flow
- If you are running your code locally or as a locally-hosted website, you can utilize the Implicit OAuth Flow with a
localhostredirect uri to generate a Token. As an example, you can see Barry’s Implicit Auth Example or my PointBar Overlay or, as a “Local App Example”, My LiveSplit plugin for Predictions or my BTD Mod - If neither of these are an option for you, you can still use the Authorization Code flow by doing the “OAuth Dance” once until you have a token/refreshToken pair, which you can save and then use with the Token Refresh Endpoint once the token expires