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)); }
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)); }
/// <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)); }
/// <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); }
/// <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); }
/// <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); }