滴状认证url在android中不起作用
这是api文档 这是客户端ID: 客户端ID滴状认证url在android中不起作用,android,login,callbackurl,Android,Login,Callbackurl,这是api文档 这是客户端ID: 客户端ID 3acdea730eaae4ea51dadf296be4e8edf7cd4b6ab030ce69c1de0d1a335b679d 客户机密 4a9773911cd2304fa23047e703e35fffbd443f32a9c73207aa60b45852e17b64 客户端访问令牌 57fe6dc09292e4dadce94a3dc9fd895117792a48f7194bbc5b8bd229e6ef1388 Java代码 String LO
3acdea730eaae4ea51dadf296be4e8edf7cd4b6ab030ce69c1de0d1a335b679d
客户机密
4a9773911cd2304fa23047e703e35fffbd443f32a9c73207aa60b45852e17b64
客户端访问令牌
57fe6dc09292e4dadce94a3dc9fd895117792a48f7194bbc5b8bd229e6ef1388
Java代码
String LOGIN_CALLBACK = "placeholder.com";
String LOGIN_URL = "https://dribbble.com/oauth/authorize?client_id="
+ "3acdea730eaae4ea51dadf296be4e8edf7cd4b6ab030ce69c1de0d1a335b679d"
+ "&redirect_uri=http%3A%2F%2F" + LOGIN_CALLBACK
+ "&scope=public+write+comment+upload";
context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(LOGIN_URL)));
明显地
<activity
android:name=".DribbbleLogin"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<data
android:host="dribbble-auth-callback"
android:scheme="plain" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
<activity
android:name=".DribbbleLogin"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<data
android:host="example.com"
android:scheme="plain" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
只需输入callbackurl”plain://example.com"
明显地
<activity
android:name=".DribbbleLogin"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<data
android:host="dribbble-auth-callback"
android:scheme="plain" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
<activity
android:name=".DribbbleLogin"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<data
android:host="example.com"
android:scheme="plain" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
使用Dribble_client_id、Dribble_client_secret和此代码调用登录url“”。您将获得json中的访问令牌、令牌类型和作用域
谢谢大家请输入callbackurl“plain://example.com"
明显地
<activity
android:name=".DribbbleLogin"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<data
android:host="dribbble-auth-callback"
android:scheme="plain" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
<activity
android:name=".DribbbleLogin"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<data
android:host="example.com"
android:scheme="plain" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
使用Dribble_client_id、Dribble_client_secret和此代码调用登录url“”。您将获得json中的访问令牌、令牌类型和作用域
谢谢大家您的callbackUrl应该是plain://example.com
在android清单中还需要做一件事
android:host="example.com"
android:scheme="plain"
您的callbackUrl应该类似于plain://example.com
在android清单中还需要做一件事
android:host="example.com"
android:scheme="plain"
你能发布你的代码吗?你能发布你的代码吗?