Search code examples
androidgoogle-tasks

Google tasks API. What parameters to use in TasksRequest.setFields(String fields) method?


I'm building a Android app that sync tasks to google tasks. And i used the Google Tasks APIs. My question is what parameters can I use in TasksRequest.setFields(String fields)? I see the sample code uses "items/title". What if i want to get other fields or what if i want to get multiple fields at the same time?


Solution

  • The format of this string is described here: https://developers.google.com/discovery/v1/performance#partial-response

    And the APIs Explorer can help you build the string as well using a UI: https://developers.google.com/apis-explorer