public static GetPermanentCode ( string suiteAccessToken, string suiteId, string authCode, int timeOut = Config.TIME_OUT ) : |
||
suiteAccessToken | string | |
suiteId | string | 应用套件id |
authCode | string | 临时授权码会在授权成功时附加在redirect_uri中跳转回应用提供商网站。 |
timeOut | int | 代理请求超时时间(毫秒) |
return |
public static GetPermanentCodeResult GetPermanentCode(string suiteAccessToken, string suiteId, string authCode, int timeOut = Config.TIME_OUT)
{
var url = string.Format("https://qyapi.weixin.qq.com/cgi-bin/service/get_permanent_code?suite_access_token={0}", suiteAccessToken.AsUrlData());
var data = new
{
suite_id = suiteId,
auth_code = authCode
};
return CommonJsonSend.Send<GetPermanentCodeResult>(null, url, data, CommonJsonSendType.POST, timeOut);
}