Create tasks to other gmail acount using google task api

998 views Asked by At

I am using google task api, it works fine with my account associated to my device, but I can create tasks ONLY on this account, so how can I create tasks for other Gmail accounts that I know the login and password using my configured device account ?

For example my current account is [email protected] it is the account associated with the tablet, I want to create a task for [email protected] that I know the password.

to get token I'am using the GoogleAuthUtil.getToken(....) and GoogleAcountManager

1

There are 1 answers

2
pinoyyid On

You cannot use username/password authentication to access the tasks api. The only thing you can do is login to that user, then use the Oauth Playground (https://developers.google.com/oauthplayground/) to generate a refresh token, which you can embed in your app to request an access token, which you can then use to access the API.

NB, this is all a really bad idea.