How to login for gmail account from particle electron?

I need to dump my data from electron to google spreadsheet using google apps script. I wrote code calling web app url of google app script in loop from electron firmware but it doesn’t get dumped in sheet, the problem is electron doesn’t have access to my spreadsheet. So i need google sign in from electron and call url to post data.

I’m pretty sure you’ll find some topics in this forum touching on your question when you use the search feature.