开发豆瓣客户端 出了问题
应用状态 1.开发中 → 2.审核中 → 3.审核通过API Key0447359d1d4b3fc80cd5a0d757e1bf58
Secret749aec574634845a
String apiKey = "0447359d1d4b3fc80cd5a0d757e1bf58";
String secret = "749aec574634845a";
DoubanService myService = new DoubanService("庆小瓣瓣", apiKey,
secret);
System.out.println("please paste the url in your webbrowser, complete the authorization then come back:");
System.out.println(myService.getAuthorizationUrl(null));
byte buffer[] = new byte[1];
try {
System.in.read(buffer);
} catch (IOException e) {
e.printStackTrace();
}
ArrayList<String> tokens=myService.getAccessToken();
System.out.print(tokens.get(0));
System.out.println(tokens.get(1));
这个应用已审核通过了,但是在程序中获取时还是报错:
please paste the url in your webbrowser, complete the authorization then come back:
net.oauth.OAuthProblemException
at net.oauth.client.OAuthHttpClient.invoke(OAuthHttpClient.java:71)
at net.oauth.client.OAuthClient.invoke(OAuthClient.java:96)
at net.oauth.client.OAuthClient.getRequestToken(OAuthClient.java:67)
at net.oauth.client.OAuthClient.getRequestToken(OAuthClient.java:82)
at com.google.gdata.client.douban.DoubanService.getAuthorizationUrl(Unknown Source)
at demo.main(demo.java:17)
null
--------------------编程问答-------------------- 同问....... --------------------编程问答-------------------- 同问....... --------------------编程问答-------------------- 同问,我也遇到这样问题
--------------------编程问答-------------------- 哥也遇到相同的问题,几天了,求高手降临指导。
补充:移动开发 , Android