public static UpdateStoreResultJson UpdateStore(string accessTokenOrAppId, UpdateStoreData data, int timeOut = WxConfig.TIME_OUT) { return(ApiHandlerWapper.TryCommonApi(accessToken => { var urlFormat = string.Format(WxConfig.ApiMpHost + "/wxa/update_store?access_token={0}", accessToken.AsUrlData()); return CommonJsonSend.Send <UpdateStoreResultJson>(null, urlFormat, data, timeOut: timeOut); }, accessTokenOrAppId)); }
public static WxJsonResult UpdatePoi(string accessTokenOrAppId, UpdateStoreData updateStoreData, int timeOut = WxConfig.TIME_OUT) { return(ApiHandlerWapper.TryCommonApi(accessToken => { var url = string.Format(WxConfig.ApiMpHost + "/cgi-bin/poi/updatepoi?access_token={0}", accessToken.AsUrlData()); return CommonJsonSend.Send <WxJsonResult>(null, url, updateStoreData, CommonJsonSendType.POST, timeOut); }, accessTokenOrAppId)); }
public static async Task <UpdateStoreJsonResult> UpdateStoreAsync(string accessTokenOrAppId, UpdateStoreData data, int timeOut = WxConfig.TIME_OUT) { return(await ApiHandlerWapper.TryCommonApiAsync(async accessToken => { var url = string.Format(WxConfig.ApiMpHost + "/wxa/update_store?access_token={0}", accessToken.AsUrlData()); return await CommonJsonSend.SendAsync <UpdateStoreJsonResult>(null, url, data, CommonJsonSendType.POST, timeOut); }, accessTokenOrAppId)); }