Oauth认证返回access_token时间是24小时,有什么办法可以让他的时间变长吗?
返回的refresh_token 是刷新令牌,那么刷新后access_token会改变吗?refresh_token 会改变吗?
是淘宝的Oauth认证。   刷新请求在android上是怎么写的?HttpPost httppost=new HttpPost("https://oauth.taobao.com/token");//创建POST请求连接
List<NameValuePair> httpParams=new ArrayList<NameValuePair>();//创建数组链表    NameValuePair表示 键-值对类型的借口
httpParams.add(new BasicNameValuePair("grant_type","refresh_token")); //BasicNameValuePair 继承了接口的简单类 本次名为name 值为java
httpParams.add(new BasicNameValuePair("refresh_token","XXXXXXXXX"));
httpParams.add(new BasicNameValuePair("client_id","XXXXXXXXX"));
httpParams.add(new BasicNameValuePair("client_secret","XXXXXXXXX"));
        httppost.setEntity(new UrlEncodedFormEntity(httpParams,HTTP.UTF_8));//设置请求实体
HttpResponse httpresponse=new DefaultHttpClient().execute(httppost);//递交请求并接收返回值
这样调用总是无法请求。求指点了。这方面新手。