public void GetSentiments()
 {
     string ret = string.Empty;
     Api.SentimentalAnalysis.SentimentalAnalysis ApiSentimentalAnalysis = new Api.SentimentalAnalysis.SentimentalAnalysis();
     int startingIndex = 0;
     int count = 10;
     while (true)
     {
         try
         {
             ApiSentimentalAnalysis.FeedSentiment("0", "5");
         }
         catch (Exception ex)
         {
         }
         try
         {
             ApiSentimentalAnalysis.Timeout = -1;
             ret = ApiSentimentalAnalysis.FeedSentiment(startingIndex.ToString(), count.ToString());
             if (ret == "no_data")
             {
                 startingIndex = 0;
             }
             startingIndex += count;
         }
         catch (Exception ex)
         {
             Thread.Sleep(10*10*1000);
            ret="Somthing went wrong"; 
         }
         Console.WriteLine(ret);
         Thread.Sleep(20*1000);
     }
 }
        public void GetSentiments()
        {
            string ret = string.Empty;

            Api.SentimentalAnalysis.SentimentalAnalysis ApiSentimentalAnalysis = new Api.SentimentalAnalysis.SentimentalAnalysis();
            int startingIndex = 0;
            int count         = 10;

            while (true)
            {
                try
                {
                    ApiSentimentalAnalysis.FeedSentiment("0", "5");
                }
                catch (Exception ex)
                {
                }
                try
                {
                    ApiSentimentalAnalysis.Timeout = -1;
                    ret = ApiSentimentalAnalysis.FeedSentiment(startingIndex.ToString(), count.ToString());
                    if (ret == "no_data")
                    {
                        startingIndex = 0;
                    }
                    startingIndex += count;
                }
                catch (Exception ex)
                {
                    Thread.Sleep(10 * 10 * 1000);
                    ret = "Somthing went wrong";
                }
                Console.WriteLine(ret);
                Thread.Sleep(20 * 1000);
            }
        }
        public void GetSentimentsNew()
        {
            string ret = string.Empty;
            Api.SentimentalAnalysis.SentimentalAnalysis ApiSentimentalAnalysis = new Api.SentimentalAnalysis.SentimentalAnalysis();
            while (true)
            {
                try
                {
                    ret = ApiSentimentalAnalysis.FeedSentiment("0", "5");
                }
                catch (Exception ex)
                {
                    ret = "somthing went wrong";
                }

                Console.WriteLine(ret);
                Thread.Sleep(10*1000);
            }
        }
        public void GetSentimentsNew()
        {
            string ret = string.Empty;

            Api.SentimentalAnalysis.SentimentalAnalysis ApiSentimentalAnalysis = new Api.SentimentalAnalysis.SentimentalAnalysis();
            while (true)
            {
                try
                {
                    ret = ApiSentimentalAnalysis.FeedSentiment("0", "5");
                }
                catch (Exception ex)
                {
                    ret = "somthing went wrong";
                }

                Console.WriteLine(ret);
                Thread.Sleep(10 * 1000);
            }
        }