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

New Post: Streaming with Location AND ((track 1) OR (track 2)), possible?

$
0
0
Hi,

This code will get all the tweets containing ( (keyword1 AND keyword2) OR (keyword3) ) AND (Matching the expected location)
var filteredStream = Tweetinvi.Stream.CreateFilteredStream();
filteredStream.AddTrack("keyword1 keyword2");
filteredStream.AddTrack("keyword3");
filteredStream.AddLocation(topLeft, bottomRight);

filteredStream.StartStreamMatchingAllConditionsAsync();
As a result your code should be working fined.

Viewing all articles
Browse latest Browse all 4126

Trending Articles