/// <summary>
        /// Gets the trending topics asynchronous.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        public async Task <TrendingTopicResponse> GetTrendingTopicsAsync(TrendingTopicRequest request)
        {
            var responseJson = await this.SendGetAsync(this.Url);

            var response = JsonConvert.DeserializeObject <TrendingTopicResponse>(responseJson);

            return(response);
        }
        public void GetTrendingTopicsTest()
        {
            var request = new TrendingTopicRequest();

            var client   = new TrendingTopicClient(apiKey);
            var response = client.GetTrendingTopics(request);

            Assert.IsTrue(response.Results.Count > 0);
        }
 /// <summary>
 /// Gets the trending topics.
 /// </summary>
 /// <param name="request">The request.</param>
 /// <returns></returns>
 public TrendingTopicResponse GetTrendingTopics(TrendingTopicRequest request)
 {
     return(GetTrendingTopicsAsync(request).Result);
 }