Example #1
0
        /// <summary>
        /// get tags index
        /// </summary>
        internal static List <TagMeta> getTags()
        {
            var result = new List <TagMeta>();
            var js     = new JavaScriptSerializer();
            var meta   = new TagsMeta();

            do
            {
                var s = RequestRetry("/api2/tags?length=1000&mark=" + meta.mark);
                meta = js.Deserialize <TagsMeta>(s);
                result.AddRange(meta.tags);
            }while (!String.IsNullOrEmpty(meta.mark));

            return(result);
        }
Example #2
0
        /// <summary>
        /// get tags index
        /// </summary>
        internal static List<TagMeta> getTags()
        {
            var result = new List<TagMeta>();
              var js = new JavaScriptSerializer();
              var meta = new TagsMeta();

              do {
            var s = RequestRetry("/api2/tags?length=1000&mark=" + meta.mark);
            meta = js.Deserialize<TagsMeta>(s);
            result.AddRange(meta.tags);
              }
              while (!String.IsNullOrEmpty(meta.mark));

              return result;
        }