πππππππππππππSet-Upππππππππππππππ
We have detailed video tutorials for each of the actions/elements we have in this plugin. Watch them to understand and use it at ease.
ππ You must set up your Google Cloud account and create a Google Cloud Project before you can use this plugin. Takes less than 5 mins if you follow the instructions. It is a one time process which is necessary to get your client-id and client-secret. ππ
β Go to
https://console.cloud.google.com/β Log in to your Google account.
β Create a new project.
β Enable Google Sheets API.
β Create credentials for the API along with redirect URI.
β Note down the Client-ID and Client-secret.
βΈ Step (1 to 6) is explained in detail:
βΈ Watch Youtube video here:
https://www.youtube.com/watch?v=k1Y-jR1bpOIππππππππππInstalling the Pluginππππππππππ
β Log in to your Bubble account
β Go to Plugins
β Search for βGoogle Sheets by Ritz7β
β Install the plugin
πππππππππππUsing the Pluginπππππππππππ
ππ Note: In all the actions, we have a field named "Authorization". This field should be in the following format: Bearer <Access-Token>. Access Token will be valid for 60 mins from the time it is generated and you can regenerate it using the Refresh Token. And this step is explained in detail here:
https://www.youtube.com/watch?v=AsyYBqPsJpAππ
β Drag and drop the element "G-Sheets".
β Add an action called "Get Sheets Auth-Code via URL" which requires you can add Client-ID and redirect URI. This will return an URL that needs to be opened.
Note: The redirect URI should match exactly as you have set while configuring in Google Cloud.
β Add Next step: You will have to open the URL you get from the previous step.
Note: This will ask your permission for your app to use your Google Account. Once you permit, the element will automatically fetch the code from the URL.
β Generate Auth Token via code: Call an Action "Get_Access_Token-via_Code". This will require you to pass the client-ID, client-secret, code (you will get it from the element 'Gmail' and the param is named as 'Gmail_Auth_Code') and redirect URI (this should match the one added in the Google Cloud Project)
Note: You will also get Refresh Token along with Access token from step-4. You use Refresh Token to get the Access Token once the old Access Token expires.
β Use "Get_Access_Token-via_R-Token" action to get the Access token from Refresh Token. This requires you to provide client-ID, client-secret and refresh token.
ππ Actions ππ
β½ Create a SpreadSheet
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» Spreadsheet_Name: Name of the sheet which will be created.
β Outputs:
β» Details of the sheet created.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=vesVIdFo5PMβ½ Get Spreadsheet details
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» SpreadsheetId: The ID of the spreadsheet, You can find this ID in the URL of Spreadsheet.
β Outputs:
β» Details of the spreadsheet.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=yGFavZPpTKUβ½ Get Spreadsheet Values in batch
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» SpreadsheetId: The ID of the spreadsheet, You can find this ID in the URL of Spreadsheet.
β» ranges: Ex-Sheet1!A1:B2. It will fetch all the values from Sheet1 between A1 and B2.
β» majorDimension: It should be either ROWS or COLUMNS.
β Outputs:
β» List of values between the sheet range specified in the input.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=yGFavZPpTKUβ½ Append values to sheets
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» SpreadsheetID: The ID of the spreadsheet, You can find this ID in the URL of Spreadsheet.
β» range: Ex-Sheet1!C1 It appeds values to last row of 'C' Column
β» majorDimension: It should be either ROWS or COLUMNS
β» values: It should contain the values that needs to be added in the sheet.
β Outputs:
β» Information about the appended values, such as the updated range.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=xSw8zo7rQrIβ½ Update values of sheets
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» spreadsheetId: The ID of the spreadsheet, You can find this ID in the URL of Spreadsheet
β» range: Ex-Sheet1!C1 It appeds values to last row of 'C' Column.
β» responseValueRenderOption: It should be FORMATTED_VALUE or UNFORMATTED_VALUE or FORMULA.
β» includeValuesInResponse: it should be either true or false.
β» responseDateTimeRenderOption: It should be FORMATTED_VALUE or SERIAL_NUMBER.
β» majorDimension: It should be either ROWS or COLUMNS.
β» values: It should contain the values that needs to be added in the sheet.
β Outputs:
β» Information about the updated values, including the updated range and any formatting options applied.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=P3dsclbZ4Roβ½ Clear range of sheets
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» SpreadsheetId: The ID of the spreadsheet, You can find this ID in the URL of Spreadsheet.
β» Range: It should contain the sheet range where data should be cleared.
β Outputs:
β» Sheet ID and range will be given where data will be cleared.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=PVnYe-AF_wwβ½ Copy a sheet from one spreadsheet to another
β Inputs:
β» Access token: Token is generated from an action "Get Access Token via Code".
β» Spreadsheet-ID: The ID of the spreadsheet. You can find this ID in the URL of Spreadsheet.
β» Sheet-ID: It is the ID of the sheet that needs to be copied to another spreadsheet. You can find in the URL of the spreadsheet which has a parameter called "gid".
β» Dest_Spreadsheet-ID: It is the ID of the spreadsheet where the copied sheet will be added. You can find this ID in the URL of Spreadsheet.
β Outputs:
β» Details of the copied sheet such as sheet ID, title etc.
βΈ Watch the video for the above action here:
https://www.youtube.com/watch?v=W0CfBhurfXk