/// <summary> /// 获取企业号的永久授权码 /// 该API用于使用临时授权码换取授权方的永久授权码,并换取授权信息、企业access_token。 /// </summary> /// <param name="helper"></param> /// <param name="request"></param> /// <param name="suite_access_token"></param> /// <returns></returns> public static GetPermanentCodeResult GetPermanentCode(this ApiHelper helper, string suite_access_token, GetPermanentCodeRequest request) { string url = string.Format("{0}service/get_permanent_code?suite_access_token={1}", baseUrl, suite_access_token); return(HttpHelper.HttpPost.GetJsonResult <GetPermanentCodeRequest, GetPermanentCodeResult>(url, request)); }