Hey there,
I want to deploy a Python backend to Monday Code that talks to the Monday API (specifically for doing GraphQL mutations). I want to use the OAuth Flow because I want to make API calls in the background for an extended period of time and without user input. I would also like to make it publicly distributable.
I have a working prototype that uses a combination of the Workspace view feature and talks to a locally hosted (on my machine) copy of the backend. The Python backend on my machine gets the API key (or token) from an environment variable.
Obviously this approach won’t work for a publicly distributable app (storing the API key in an environment variable).
The documentation says that "After a user approves or denies your app’s authorization request, they will be redirected back to your app’s specified redirect_uri
’. How do I test this?
The documentation also says “Your app makes an authorization request and redirects the user to the monday OAuth URL with the client ID.” What part of the “app” is making this request and when?
My last question is what is the best code example of this sort of setup that I can follow. Doesn’t have to be in Python but it would help.