Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In order to Test modify cell data and insert rows/columns functionality.
we have to create service account in google cloud with
editor
role and download it has json store securely in projectwe have to share respective google sheet with service account email as a
editor
README to create service account
Now you can test this code:-
first you have to create list of values in a json file to add/modify in google sheet.
Examples:-
Create ./unversioned/list_of_values.json file with below values.
then insert these values at B8 Cell in Sheet! we have to run below command.
Now the values are replaced at B8 C8 D8, B9 C9, B10 C10 cells in Sheet1.
In list_of_values.json file:-
if You have provided [["row 1"]] then only B8 cell has modified.
if You have provided [["row 1"]["row 2"]] then A8,B9 cells has modified.
if You have provided [["row 1, "col 1"]] then B8,C* cells has modified.
if You have provided [["row 1, "col 1"],["row 2, "col 2"]] then B8 C8,B9 C9 cell has modified.
0 -> represents Sheet1 , 1 for Sheet2 .....