Exemplo n.º 1
0
        public void StoreBatchAddTest()
        {
            var accessToken = AccessTokenContainer.GetToken(_appId);
            var data = new StoreLocationData()
                {
                    location_list = new List<Store_Location>()
                        {
                            _StoreLocation
                        },
                };

            var result = Store.StoreBatchAdd(accessToken, data);
            Assert.IsNotNull(result);
            Assert.AreEqual(result.errcode, ReturnCode.请求成功);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 批量导入门店信息
        /// </summary>
        /// <param name="accessToken"></param>
        /// <param name="data">门店数据</param>
        /// <returns></returns>
        public static StoreResultJson StoreBatchAdd(string accessToken, StoreLocationData data)
        {
            var urlFormat = string.Format("https://api.weixin.qq.com/card/location/batchadd?access_token={0}", accessToken);

            return CommonJsonSend.Send<StoreResultJson>(accessToken, urlFormat, data);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 批量导入门店信息
        /// </summary>
        /// <param name="accessToken"></param>
        /// <param name="data">门店数据</param>
        /// <returns></returns>
        public static StoreResultJson StoreBatchAdd(string accessToken, StoreLocationData data)
        {
            var urlFormat = string.Format("https://api.weixin.qq.com/card/location/batchadd?access_token={0}", accessToken);

            return(CommonJsonSend.Send <StoreResultJson>(accessToken, urlFormat, data));
        }