Esempio n. 1
0
 public static WxJsonResult ApplyMerchant(string accessTokenOrAppId, ApplyMerchantData data, int timeOut = WxConfig.TIME_OUT)
 {
     return(ApiHandlerWapper.TryCommonApi(accessToken =>
     {
         var url = string.Format(WxConfig.ApiMpHost + "/wxa/apply_merchant?access_token={0}", accessToken.AsUrlData());
         return CommonJsonSend.Send <WxJsonResult>(null, url, data, CommonJsonSendType.POST, timeOut);
     }, accessTokenOrAppId));
 }
Esempio n. 2
0
 public static async Task <WxJsonResult> ApplyMerchantGetMerchantCategoryResultAsync(string accessTokenOrAppId, ApplyMerchantData data, int timeOut = WxConfig.TIME_OUT)
 {
     return(await ApiHandlerWapper.TryCommonApiAsync(async accessToken =>
     {
         var url = string.Format(WxConfig.ApiMpHost + "/wxa/apply_merchant?access_token={0}", accessToken.AsUrlData());
         return await CommonJsonSend.SendAsync <WxJsonResult>(null, url, data, CommonJsonSendType.POST, timeOut);
     }, accessTokenOrAppId));
 }