Example #1
0
        public static WeixinResult Delete(string poiId)
        {
            TkDebug.AssertArgumentNullOrEmpty(poiId, "poiId", null);

            string url = WeUtil.GetUrl(WeCardConst.DEL_POI);
            WePoiId id = new WePoiId(poiId);
            return WeUtil.PostDataToUri(url, id.WriteJson(), new WeixinResult());
        }
Example #2
0
        public static WePoiBaseInfo Query(string poiId)
        {
            TkDebug.AssertArgumentNullOrEmpty(poiId, "poiId", null);

            string url = WeUtil.GetUrl(WeCardConst.GET_POI);
            WePoiId id = new WePoiId(poiId);
            return WeUtil.PostDataToUri(url, id.WriteJson(), new WePoi()).BaseInfo;
        }
Example #3
0
        public static WeixinResult Delete(string poiId)
        {
            TkDebug.AssertArgumentNullOrEmpty(poiId, "poiId", null);

            string  url = WeUtil.GetUrl(WeCardConst.DEL_POI);
            WePoiId id  = new WePoiId(poiId);

            return(WeUtil.PostDataToUri(url, id.WriteJson(), new WeixinResult()));
        }
Example #4
0
        public static WePoiBaseInfo Query(string poiId)
        {
            TkDebug.AssertArgumentNullOrEmpty(poiId, "poiId", null);

            string  url = WeUtil.GetUrl(WeCardConst.GET_POI);
            WePoiId id  = new WePoiId(poiId);

            return(WeUtil.PostDataToUri(url, id.WriteJson(), new WePoi()).BaseInfo);
        }