Writing values to google sheet
I'm trying to write values to google sheet using makeRequest with 'https://sheets.googleapis.com/v4/spreadsheets/' api. I can read values successfully, however didn't figure how to use PUT method that will be equivalent to the following request:
PUT https://sheets.googleapis.com/v4/spreadsheets/sheetId/values/Sheet1!I2:J2?valueInputOption=RAW
{values : [["123", "456"]]}
I tried the following:
manager.makeRequest('google', requestUrl, { method : 'put', params : { values : [["123", "456"]] } })
But it's not working. Can you please explain if this is possible & demonstrate how to write the appropriate request ?
Thanks.
@tamirla did you ever figure out a solution?
@gonzalezchris my solution was to use https://github.com/adamjmcgrath/react-native-simple-auth instead :)
Notice however it also has an open issue:
https://github.com/adamjmcgrath/react-native-simple-auth/issues/83
but this one at least has a workaround.
@gonzalezchris to be more specific - I used simple-auth just for authentication, and used rest api for all other operations.