I'd like to be able to create a custom app that uses Google tasks. How would I go about using Google tasks API from an Android app?
In other words, how do I make an API call and use the response?
I found a tutorial located here that was helpful.
I'd like to be able to create a custom app that uses Google tasks. How would I go about using Google tasks API from an Android app?
In other words, how do I make an API call and use the response?
I found a tutorial located here that was helpful.
Register at cloud.google.com, enable the Tasks API, and create android authorization credentials
Add to your AndroidManifest.xml:
Add to your build.gradle dependencies:
Use
AccountManager.newChooseAccountIntent
to get an account, then:Now you can use the Tasks API, e.g.
service.tasklists().list().execute()