-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Hello,
I am developing a django application that interacts with the Xero API.
Your example applications are extremely useful, however as someone who has never used flask before, I have had a very difficult time picking apart the application and replacing flask specific code with more generic libraries.
Specifically, the flask_oauthlib related code has been very annoying to deal with. I am attempting to replace it with requests_oauthlib, however not having extensive background in python or using oauth libraries like this, it has been quite painful.
It would be really appreciated if in your sample applications you did not tie so much to the framework you are using, so the code can be translated more easily to other frameworks. I have not found any library that provides an interface similar to flask_oauthlib in terms of providing an api client that will accept the authorization / access token / refresh token url and provide automatic refreshing of the token for you.
Normally integrating something like this would take a very minimal amount of time, however I am finding myself spending hours making sure the token fetching and refreshing is happening correctly. An example of how to do this 'framework agnostic' would be extremely helpful.
Thanks for reading.