a-marenkov / gsheets

A Dart library for working with Google Sheets API.
Other
79 stars 31 forks source link

BatchUpdate #11

Closed piecubed closed 4 years ago

piecubed commented 4 years ago

How do you plan to implement BatchUpdate? I can make a PR for it, but I'm not sure how you would like it implemented with your current API. https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate

piecubed commented 4 years ago

Probably going to start making a BatchUpdate class, that you can add requests to somehow, and then apply it with an apply method that accepts the spreadsheetID, so you can easily apply the same BatchUpdate to more than one spreadsheet.

piecubed commented 4 years ago

We could use the googleapi package for the requests, but then to use that I think that users would need to add that to their dependencies, leaving that up to you. Issue with this is I think that the requests that googleapi has don't have a common class they subclass, so this would not be ideal for checking if the request is valid.

piecubed commented 4 years ago

I think the best way to do this is just with googleapis, since we already depend on it, they can just import it easilly.

piecubed commented 4 years ago

Updated the dependency for googleapis, a few of the requests weren't implemented in the last version.

piecubed commented 4 years ago

12