BoxKite.Twitter.TrendsExtensions.GetTrendsForPlace C# (CSharp) Метод

GetTrendsForPlace() публичный статический Метод

Returns the top 10 trending topics for a specific WOEID, if trending information is available for it.
ref: https://dev.twitter.com/docs/api/1.1/get/trends/place
public static GetTrendsForPlace ( this session, int placeId = 1, bool exclude = false ) : Task>
session this
placeId int The Yahoo! Where On Earth ID of the location to return trending information for. Global information is available by using 1 as the WOEID.
exclude bool If true will remove all hashtags from the trends list.
Результат Task>
        public static async Task<TwitterResponseCollection<TrendsForPlaceResponse>> GetTrendsForPlace(this ITwitterSession session, int placeId = 1, bool exclude = false)
        {
            var parameters = new TwitterParametersCollection
                        {{"id",placeId.ToString()}};
            if (exclude)
                parameters.Add("exclude","hashtags");

            return await session.GetAsync(TwitterApi.Resolve("/1.1/trends/place.json"), parameters)
                .ContinueWith(c => c.MapToMany<TrendsForPlaceResponse>());
        }