My actual code includes oauth for the google sheets api - reads a json file then calls the api, processes the data, etc.
There is a lot of callbacks - do you think trying to flatten things out to with async would help?
Flattening out callbackville worked somewhat. As long as the token is valid it returns 200. My only issue is the authorization.
Right now if the token is missing or not valid, I am outputting a url to the terminal. I then click that url, go through the google oauth, and get redirected back to the admin homepage. I then copy and paste the code url param from the browser back into the terminal - this triggers the token to be saved to a json file. This can’t be the best way to do this…are we able to make our own route handlers?
Could be a cool plugin, it writes the ID back to the google sheet so it can be used for updates later…ecommerce
Its mostly Koa, if you want to gather a fairly strong knowledge of Strapi; understanding some of the tech we use like Koa (and its many packages), Bookshelf/Knex, Mongoose, etc is a great place to start.