修改分组商品需要Post的数据
예제 #1
0
        public static async Task <WxJsonResult> ProductModGroupAsync(string accessToken, ProductModGroup productModGroup)
        {
            var urlFormat = Config.ApiMpHost + "/merchant/group/productmod?access_token={0}";

            return(await Senparc.Weixin.CommonAPIs.CommonJsonSend.SendAsync <WxJsonResult>(accessToken, urlFormat, productModGroup));
        }
예제 #2
0
        public static WxJsonResult ProductModGroup(string accessToken, ProductModGroup productModGroup)
        {
            var urlFormat = Config.ApiMpHost + "/merchant/group/productmod?access_token={0}";

            return(CommonJsonSend.Send <WxJsonResult>(accessToken, urlFormat, productModGroup));
        }
예제 #3
0
        /// <summary>
        /// 修改分组商品
        /// </summary>
        /// <param name="accessToken"></param>
        /// <param name="productModGroup">修改分组商品需要Post的数据</param>
        /// <returns></returns>
        public static WxJsonResult ProductModGroup(string accessToken, ProductModGroup productModGroup)
        {
            var urlFormat = "https://api.weixin.qq.com/merchant/group/productmod?access_token={0}";

            return(CommonJsonSend.Send <WxJsonResult>(accessToken, urlFormat, productModGroup));
        }
예제 #4
0
        /// <summary>
        /// 修改分组商品
        /// </summary>
        /// <param name="accessToken"></param>
        /// <param name="productModGroup">修改分组商品需要Post的数据</param>
        /// <returns></returns>
        public static WxJsonResult ProductModGroup(string accessToken, ProductModGroup productModGroup)
        {
            var urlFormat = "https://api.weixin.qq.com/merchant/group/productmod?access_token={0}";

            return CommonJsonSend.Send<WxJsonResult>(accessToken, urlFormat, productModGroup);
        }
예제 #5
0
        /// <summary>
        ///     修改分组商品
        /// </summary>
        /// <param name="accessTokenOrAppId"></param>
        /// <param name="productModGroup">修改分组商品需要Post的数据</param>
        /// <returns></returns>
        public static WxJsonResult ProductModGroup(string accessTokenOrAppId, ProductModGroup productModGroup)
        {
            return ApiHandlerWapper.TryCommonApi(accessToken =>
            {
                var url = $"https://api.weixin.qq.com/merchant/group/productmod?access_token={accessToken}";
                return CommonJsonSend.Send<WxJsonResult>(accessToken, url, productModGroup);
            }, accessTokenOrAppId);

            //var urlFormat = "https://api.weixin.qq.com/merchant/group/productmod?access_token={0}";

            //return CommonJsonSend.Send<WxJsonResult>(accessToken, urlFormat, productModGroup);
        }
예제 #6
0
        /// <summary>
        /// 【异步方法】修改分组商品
        /// </summary>
        /// <param name="accessToken"></param>
        /// <param name="productModGroup">修改分组商品需要Post的数据</param>
        /// <returns></returns>
        public static async Task<WxJsonResult> ProductModGroupAsync(string accessToken, ProductModGroup productModGroup)
        {
            var urlFormat = "https://api.weixin.qq.com/merchant/group/productmod?access_token={0}";

            return await Senparc.Weixin.CommonAPIs.CommonJsonSend.SendAsync<WxJsonResult>(accessToken, urlFormat, productModGroup);
        }