3 ms·
Using Google's Python Client Library to Authorise Your Desktop App with OAuth2
- tbrock 11y agoNice post. I've definitely struggled with this before. I'm always amazed at how difficult it is to use google's APIs. It probably should not require a lengthy post to explain how it works assuming they want people to use it. Yet here we are.
- fixermark 11y agoWhat challenges do you encounter? I've not really run into issues working with it (OAuth is complicated, but it's complicated for the right reasons).
- Jmoir 11y agoYeah, I'm not too impressed by the Google API documentation if I'm honest. Using the API via HTTP is quite well documented, but using the api via their python library... Not so much.
- jhasse 11y agoAm I the only one or is there something wrong with scrolling on this site?
- gravypod 11y agoIs there any way to have an end-user application that doesn't require a oauth certificate the way you created? I'm attempting to write some software now that would benefit from allowing people to keep data in Google Spreadsheets.
- Jmoir 11y agoIf you're going to be accessing user data, you need to be using oath authorisation. There are other ways to handle it but after a lot of research and trial and error, in the end this was the best way I found.
- mherrmann 11y agoIf you want to write a Django app that uses Google's OAuth then the following would serve as a good template: https://github.com/mherrmann/ExcludeMyIP https://github.com/mherrmann/ExcludeMyIP.