Example #1
0
 public IPlaceTrends GetTrends()
 {
     try
     {
         var Indo  = new Coordinates(112.71917, -7.27683);
         var tweet = Auth.ExecuteOperationWithCredentials(_creds, () =>
         {
             var allLoc = Trends.GetAvailableTrendLocations();
             foreach (var loc in allLoc)
             {
                 if (loc.CountryCode == "ID")
                 {
                     return(Trends.GetTrendsAt(loc.WoeId));
                 }
             }
             return(Trends.GetTrendsAt(23424846));
             //return Trends.GetTrendsAt(56000318);
         });
         return(tweet);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
Example #2
0
        public void getTre()
        {
            var locations = Trends.GetAvailableTrendLocations();

            foreach (var location in locations)
            {
                Console.WriteLine(location.Name + ", " + location.Country);
            }
        }
Example #3
0
        public IEnumerable <ITrendLocation> GetLocation()
        {
            var tweet = Auth.ExecuteOperationWithCredentials(_creds, () =>
            {
                return(Trends.GetAvailableTrendLocations());
            });

            return(tweet);
        }