/// <summary> /// 刷新access_token(如果需要) /// 由于access_token拥有较短的有效期,当access_token超时后,可以使用refresh_token进行刷新 /// efresh_token拥有较长的有效期(7天、30天、60天、90天),当refresh_token失效的后,需要用户重新授权。 /// </summary> /// <param name="url">AccessToken接口地址</param> /// <param name="dict"></param> /// <returns></returns> public virtual string RefreshOAuthToke(string url, IParams dict) { return(HttpProxy.HttpPost(url, dict).Response); }
/// <summary> /// 根据access_token获取用户信息 /// </summary> /// <param name="url">接口地址</param> /// <param name="dict"></param> /// <returns></returns> public virtual string GetFromAuthToket(string url, OpenIdBaseParams dict) { return(HttpProxy.HttpPost(url, dict).Response); }
/// <summary> /// Post提交,根据代码获取AccessToken /// </summary> /// <param name="url">AccessToken接口地址</param> /// <param name="dict">在重写向而获取返回的Code,换取AccessToken</param> /// <returns></returns> public virtual string GetAccessToken(string url, ToketBaseParams dict) { return(HttpProxy.HttpPost(url, dict).Response); }