Currently, in an attempt to just get a basic example working, I have this with which I'm trying to update cells A1:A4 with the value "1".
let mut req = ValueRange::default();
req.values = Some(vec![ vec![ String::from("1"), String::from("1"), String::from("1"), String::from("1") ] ]);
req.range = Some(String::from("A1:A4"));
let result = hub.spreadsheets().values_update(req, SPREADSHEET_ID, "A1:A4")
.value_input_option("USER_ENTERED")
.doit();
This responds with a bad request. I've verified that my auth works and that I am able to edit the spreadsheet like so
let mut req = sheets4::ClearValuesRequest::default();
let result = hub.spreadsheets().values_clear(req, SPREADSHEET_ID, "A1:B2").doit();
This clears A1:B2 as expected.
Ideally, I'd like to have a function like this
batch_update(&[1,2,3,4, (etc)], &["A1", "B2", "F3", "G42", (etc)]);
which would set cells A1, B2, F3 .. to 1, 2, 3.. . I am totally unfamiliar with google spreadsheets and spreadsheets in general outside of basic usage.