Reputation: 2876
I want to make an authentication dialog similar to Vine:
Thought it can be done using AccountManager. But it gives me entirely different dialog. I suppose Vine is using some private intent that shows this dialog.
Are there any public/non-public APIs for Twitter Android app that gives this dialog?
Upvotes: 0
Views: 300
Reputation: 2235
Twitter Auth is seems like not well documented.
You need to launch activity com.twitter.android.AuthorizeAppActivity
in com.twitter.android
package with following extras:
ck
— consumer keycs
— consumer secretand get result back. In result bundle you will get following extras:
tk
— access tokents
— token secretscreen_name
— looks like it is screen nameuser_id
— same hereYou must hold com.twitter.android.permission.AUTH_APP
to start this activity.
Upvotes: 4