when I encounter this method followed:
setHeader(method, request, params, url, token);
I get a error : auth fail.
when steping into the method , I found that "mAuth" is null.
if (!isBundleEmpty(authParam) && mAuth !=null) {
authHeader = mAuth.getWeiboAuthHeader(httpMethod, url, authParam, Weibo.getAppKey(),
Weibo.getAppSecret(), token);
if (authHeader != null) {
request.setHeader("Authorization", authHeader);
}
}
but,when I get the request token and access token, "mAuth" is setted like this:
Utility.setAuthorization(new RequestTokenHeader());
Utility.setAuthorization(new AccessTokenHeader());
so,what "mAuth" can be setted when I call the sina api to avoid "mAuth" null?
Original issue reported on code.google.com by liyuejia...@gmail.com on 20 Apr 2012 at 6:30
Original issue reported on code.google.com by
liyuejia...@gmail.com
on 20 Apr 2012 at 6:30