public void RefreshToken()
{
try
{
SecretSettings secretSettings = new SecretSettings();
string sign = GetRefrashSign(secretSettings.AppKey, secretSettings.SessionKey, secretSettings.refresh_token, secretSettings.AppSecret);
Dictionary<string, string> urlParams = new Dictionary<string, string>();
urlParams.Add("appkey", secretSettings.AppKey);
urlParams.Add("refresh_token", secretSettings.refresh_token);
urlParams.Add("sessionkey", secretSettings.SessionKey);
urlParams.Add("sign", sign);
try
{
WebUtils webUtils=new WebUtils();
string responsStr= webUtils.DoPost(secretSettings.refresh_token_Url, urlParams);
IDictionary result = TopUtils.ParseJson
淘宝API刷新SessionKey的方法
最新推荐文章于 2024-01-25 13:23:47 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)