Accessing 3rd Party Services (using backend function)
Required for this example
You will need a Google account for a Google Sheet.
Links for this example
Open the Example template in the Wix Editor
About this example
This example uses the Google APIs Node.js Client package included in the Wix Package Manager to access a Google Sheet. Using built-in code packages is easier and more convenient than having to write your own interface code.
You will need a Google Account where you can create a Sheet to be used as the “target" of the app. The Home page of this app is a form on which the user can enter data that will be saved to the Google Sheet. Before the Home page form can be used, you will need to configure the app to access the Sheet.
Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Configuration page provides a step-by-step process for you to configure the app to access a Google Sheet. At the end of the configuration process, the form on the Home page can be filled in and the data saved to the Sheet.
Thanks to my Wix colleague Gal who provided the original POC.