Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: SearchType not working?

$
0
0
Hello. I've been having an interesting problem when attempting to get data back from a search from Tweetinvi. Here's my code:
var searchParameter = Search.GenerateTweetSearchParameter("#[hashtag] exclude:retweets exclude:replies");
searchParameter.SearchType = Tweetinvi.Core.Enum.SearchResultType.Popular;
searchParameter.MaximumNumberOfResults = 100;
var tweets = Search.SearchTweets(searchParameter);
The problem I'm encountering is that I get the same set of tweets back, regardless of what SearchType is set to. It seems that I'm always getting the default type (Mixed, I believe) rather than the intended (Popular).

When performing this same query using the Twitter API console, I recieve different responses based on the type of the search, as expected, leading me to believe this is a problem with Tweetinvi. The excludes may be the source of the problem, if Tweetinvi doesn't support them correctly (like the since parameter, they're a hidden parameter of the API).

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>