我在为我的应用程序获取公共访问令牌时遇到问题。我收到以下错误:05-26 14:43:17.194: D/Mobli(1219): Response {"error":"invalid_request","error_description":"The request contains an unsupported parameters","error_uri": “http://dev.mobli.com/error/invalid_request”}
我用来发出请求的代码如下:
Mobli mobli = new Mobli(ID, SECRET);
SampleRequestListener mobliListner = new SampleRequestListener();
runner = new AsyncMobliRunner(mobli);
runner.obtainPublicToken(mobliListner, null);
public class SampleRequestListener extends BaseRequestListner {
public void onComplete(final String response, final Object state) {
try {
// process the response here: executed in background thread
Log.d("Mobli", "Response " + response.toString());
} catch (MobliError e) {
Log.w("Mobli Error", "Error" + e.getMessage());
}
}
}
知道代码可能有什么问题吗?
我还验证了 URL 的格式是否正确。我在 util.java 中得到了 filenotfoundexcetion