I'm trying to add support for Google Tasks to my app -- specifically, the app should be able to add a new tasks.
I've spent most of this week trying to accomplish this without success. Specifically, I've not managed to get my app fully authorized to access the API. I've found 3-5 different tutorials or sets of documentation for how to do it:
- https://developers.google.com/google-apps/tasks/oauth-and-tasks-on-android
- https://google-api-client-libraries.appspot.com/documentation/tasks/v1/java/latest/index.html
- https://developers.google.com/google-apps/tasks/instantiate
- http://developer.android.com/google/play-services/auth.html
- http://developer.android.com/reference/com/google/android/gms/auth/GoogleAuthUtil.html
- http://code.google.com/p/google-api-java-client/wiki/OAuth2
Many of the above appear to contradict one another, or at least use different APIs whose overlap isn't immediately apparent to me. The closest I've come is via the sample code referenced in the first link above (http://bit.ly/UHTKNW). I can get that to compile and run, and even to request permission from the user to access Tasks, as expected. But it then fails with a 403 Forbidden "access not configured" exception. I'm presuming I need to supply an API Key and/or client secret, but the APIs used in the example don't appear to provide an obvious way to do that. I'm also not clear on whether I need to set up a signing certificate fingerprint to make this work, and if so how to go about doing that.
So I'm stuck, confused, and super-frustrated. Any help would be greatly appreciated.
Thanks. --Dave