/// <summary> /// Gets tweets matching the specified <code>options</code>. /// </summary> /// <param name="options">The search options.</param> public string GetTweets(TwitterSearchTweetOptions options) { if (options == null) { options = new TwitterSearchTweetOptions(); } return(Client.DoHttpRequestAsString("GET", "https://api.twitter.com/1.1/search/tweets.json", options.GetQuery().NameValueCollection)); }
/// <summary> /// Gets tweets matching the specified <code>options</code>. /// </summary> /// <param name="options">The search options.</param> public SocialHttpResponse GetTweets(TwitterSearchTweetOptions options) { if (options == null) { options = new TwitterSearchTweetOptions(); } return(Client.DoHttpGetRequest("https://api.twitter.com/1.1/search/tweets.json", options.GetQuery().NameValueCollection)); }
/// <summary> /// Gets tweets matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The search options.</param> /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns> /// <see> /// <cref>https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets</cref> /// </see> public IHttpResponse SearchTweets(TwitterSearchTweetOptions options) { if (options == null) { options = new TwitterSearchTweetOptions(); } return(Client.DoHttpGetRequest("https://api.twitter.com/1.1/search/tweets.json", options)); }
/// <summary> /// Gets tweets matching the specified <code>options</code>. /// </summary> /// <param name="options">The search options.</param> public TwitterSearchTweetsResponse GetTweets(TwitterSearchTweetOptions options) { return TwitterSearchTweetsResponse.ParseResponse(Raw.GetTweets(options)); }
/// <summary> /// Gets tweets matching the specified <code>options</code>. /// </summary> /// <param name="options">The search options.</param> public TwitterSearchTweetsResponse GetTweets(TwitterSearchTweetOptions options) { return(TwitterSearchTweetsResponse.ParseResponse(Raw.GetTweets(options))); }