Getting more than 10 Tweets #20
CurryFriedRice
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
|
Hey, thanks for the suggestion, I'll try to implement it around the end of the week |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First off this is this was extremely easy to use and I think it's pretty good.
So is there a way to get more than 10 Tweets at a time? I noticed in The TweetClient.cs the queries given are robust with all the options that are available. But it's missing a way to actually ask for how many tweets that a developer/user would want.
TwitterSharp/src/Client/TwitterClient.cs
Line 223 in 1cfba2d
For this line would it be possible to add a "maxResults=10" to the end and setup a way to get a varied amount of tweets?
public async Task<Tweet[]> GetTweetsFromUserIdAsync(string userId, TweetOption[] tweetOptions = null, UserOption[] userOptions = null, MediaOption[] mediaOptions = null, maxResults=10)TwitterSharp/src/Client/TwitterClient.cs
Line 229 in 1cfba2d
var str = await _httpClient.GetStringAsync(_baseUrl + "users/" + HttpUtility.HtmlEncode(userId) + "/tweets?" + $"max_results={maxCount}" req.Build());
From The Twitter API it would look something like this.
https://api.twitter.com/2/users/2244994945/tweets?max_results=10&
Beta Was this translation helpful? Give feedback.
All reactions