I have been trying to implement a basic iOS app that will write to a Google spreadsheet when an event occurs. I started with Google dev docs here: https://developers.google.com/sheets/quickstart/ios and was able to get the things working till adding data and updating it. But, I am not able to find a way to append data(insert a new row).
I have used [self.service fetchObjectByUpdatingObject:...
method to accomplish above but [self.service fetchObjectByInsertingObject:...
method refuses to work on the same lines.
Reference documentation talks about an append
method for this purpose but I am not finding a way to call it in iOS. I have tried almost all the Fetch Methods provided to us in the GTLService
class.
Update: I am looking for the iOS counterpart for executing the following as done in Java: service.spreadsheets().values().append
Any guidance on how to append data to a spreadsheet is much appreciated.
PS: I have also tried the standard REST approach but that always returned Unauthenticated
error. So, I ditched that and took the above approach which worked for add, update.
Let me know if someone needs me to post the code for add, update implementation.