コード例 #1
0
        /// <summary>
        /// 生成多多进宝推广链接(工具商)
        /// </summary>
        /// <param name="super_GeneralGoodPromUrlRequest"></param>
        /// <returns></returns>
        public Goods_Promotion_Url_GenerateResponse Super_GeneralGoodPromUrl(Super_GeneralGoodPromUrlRequest super_GeneralGoodPromUrlRequest)
        {
            Goods_Promotion_Url_GenerateResponse goods_Promotion_Url_GenerateResponse = null;

            try
            {
                string resultContent = GetRequestResult(super_GeneralGoodPromUrlRequest.ModelToUriParamByDic(), "pdd.ddk.oauth.goods.prom.url.generate");
                goods_Promotion_Url_GenerateResponse = resultContent.ToJsonObject <Goods_Promotion_Url_GenerateResponse>();
            }
            catch (Exception ex)
            {
                LogHelper.WriteException("Super_GetAllIncrementOrder", ex);
            }

            return(goods_Promotion_Url_GenerateResponse);
        }
コード例 #2
0
        /// <summary>
        /// 获取拼多多商品推广链接
        /// </summary>
        /// <param name="goods_Promotion_Url_GenerateRequest"></param>
        /// <returns></returns>
        public Goods_Promotion_Url_GenerateResponse Good_Promotion_Url(Goods_Promotion_Url_GenerateRequest goods_Promotion_Url_GenerateRequest)
        {
            Goods_Promotion_Url_GenerateResponse goods_Promotion_Url_GenerateResponse = null;

            try
            {
                string param         = this.GetParam(goods_Promotion_Url_GenerateRequest.ModelToUriParamByDic(), "pdd.ddk.goods.promotion.url.generate");
                string resultContent = AjaxRequest.HttpPost(CommonCacheConfig.pdd_api_host + "?" + param, "", null, "", "application/json;charset=UTF-8");

                goods_Promotion_Url_GenerateResponse = resultContent.ToJsonObject <Goods_Promotion_Url_GenerateResponse>();
            }
            catch (Exception ex)
            {
                LogHelper.WriteException("Good_Promotion_Url", ex);
            }

            return(goods_Promotion_Url_GenerateResponse);
        }