Beispiel #1
0
        /// <summary>
        /// 【异步方法】获取微信服务器的ip段
        /// </summary>
        /// <param name="accessToken"></param>
        /// <returns></returns>
        public static async Task <GetCallBackIpResult> GetCallBackIpAsync(string accessToken)
        {
            var url = string.Format(Config.ApiWorkHost + "/cgi-bin/getcallbackip?access_token={0}", accessToken.AsUrlData());

            return(await CommonJsonSend.SendAsync <GetCallBackIpResult>(null, url, null, CommonJsonSendType.GET).ConfigureAwait(false));
        }
Beispiel #2
0
        /// <summary>
        /// 获取微信服务器的ip段
        /// </summary>
        /// <param name="accessToken"></param>
        /// <returns></returns>
        public static GetCallBackIpResult GetCallBackIp(string accessToken)
        {
            var url = string.Format(Config.ApiWorkHost + "/cgi-bin/getcallbackip?access_token={0}", accessToken.AsUrlData());

            return(CommonJsonSend.Send <GetCallBackIpResult>(null, url, null, CommonJsonSendType.GET));
        }