Using Google API for Sheets
-
I’m working on another brand new concept to myself. I have a little online application that lets people join a club. I want to take the data from the form and automatically save it to a Google Sheet.
It looks like I may need to install the Google API via npm for my application. If so, is it okay for me to install the Google API NodeJS client and use it in my Quasar app?
I have only before installed Quasar components so I want to make sure it’s okay to use NodeJj things for a Quasar application.
Also, if anyone has any other explanations of what I need to go about doing this, I appreciate it, thanks!
-
If so, is it okay for me to install the Google API NodeJS client and use it in my Quasar app?
NodeJS runs on a server. Quasar runs on a clients browser( most of the time). So those 2 things don’t match.
-
@dobbel oh! Oh yeah now that you say that makes sense. So what would I use for a web based thing to use Google API?
-
You could try to POST a submission to a google form: https://theconfuzedsourcecode.wordpress.com/2019/11/11/you-may-restfully-submit-to-your-google-forms/
Or you could just create the form and embed it into an iframe
-
@beets I already have a Quasar application up and running. Do you mean just use a full google form to replace my application? I don’t want to do that, since this is perfect for helping me to learn Quasar.
-
@cynderkromi The one option is to just embed a google form into an iframe. That’s the easiest, but doesn’t look as integrated. The other option is to try and reverse engineer the POST action to submit a google for like in the blog post. The third option is again to set up a nodejs / PHP process and let it handle that instead of trying to do it clientside.
-
The third option is again to set up a nodejs / PHP process and let it handle that instead of trying to do it clientside.
Probably the ‘best’ way to do it.