I'm having some difficulty understanding how to use the google api with my rails app. I've already setup devise and oauth2 where I can authenticate and create google users.
The problem is that I want to create folders, documents, and spreadsheets on my own account.
So I want my user to click "create document" and I want to create a document, save it to my own Gdrive and share the edit link.
Is there a way to get a permanent oauth2 token for myself and then use it? How would you go about setting that up.
I will have to make sure the scope is setup for drive and docs when authenticating but that's as far as I got while reading up here:
https://github.com/gimite/google-drive-ruby#readme and I'm using this for oauth2 with devise so already have client info: https://github.com/zquestz/omniauth-google-oauth2
I think I have most of the infrastructure but need that extra push to get my own permanent tokens and figure out how to make my own model that will interact with google.
Any help appreciated.