コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 /// <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));
 }
コード例 #4
0
 /// <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)); 
 }
コード例 #5
0
 /// <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)));
 }