Google Sheet API v4 and Corvid by Wix
Google APIs is a set of application programming interfaces (APIs) developed by Google which allow communication with Google Services and their integration to other services. The Google Sheets API is pretty powerful and you can utilize it for anything to data collection to data retrieval. It is even possible to perform calculations on google sheets with specified inputs and displaying the outputs.
The Sheets API allows developers to read, write, and format data in Sheets. The latest version of the Sheets API lets developers programmatically Read and write data format text and numbers, build pivot tables, enforce cell validation, set frozen rows, adjust column sizes, apply formulas, create charts, and more! For a good introduction on the Sheets API capabilities you can watch this intro video by Google that I found helpful!
For more information on the Google Sheets API visit the site here:
In particular, for this app I utilized two specific features of the Google Sheets API.
In particular, I created my app first by making a simple python command-line application that makes requests to the Google Sheets API. Because Corvid had a built in Node.js server, I had to then go back and work with javascript in the backend and make those changes.
Corvid by Wix is a serverless, open development platform that lets you build professional web applications in a hassle-free environment. It is basically an accelerated enviroment for development of Web Apps that surpasses Wix's orignal capabilities. You still work in Wix's visual builder, but you are able to add custom functionality and interactions using Corvid APIs, and enjoy serverless coding in both the front-end and backend.
There are three main pages in this App:
Again, there are three main backend JavaScript files in this App:
Installed the Node.js client library for using Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT tokens is included.
Created a database for storing the Configuration tokens and Google Sheet data
Google APIs use the OAuth 2.0 protocol for authentication and authorization.
OAuth doesn’t share password data but instead uses authorization tokens to prove an identity between consumers and service providers. OAuth is an authentication protocol that allows you to approve one application interacting with another on your behalf without giving away your password.
Google supports common OAuth 2.0 scenarios such as those for web server, installed, and client-side applications. To begin, obtain OAuth 2.0 client credentials from the Google API Console. Then your client application requests an access token from the Google Authorization Server, extracts a token from the response, and sends the token to the Google API that you want to access.
Here is the configuration screen in the app. These
Here I will be explaining the functions to pull data
This function allows you to insert data into any google sheet in any cell with the manipulation of a few variables
This function allows you to pull data from any google sheet in any set of cell ranges.
Click below to explore more of my projects!