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

Commented Unassigned: Types of stream [2598]

$
0
0
CreateSampleStream
CreateFilteredStream
CreateTweetStream

What are the differences with the above?

I've been looking at the API and there seems to be
public
user
site


Have searched the site and found nothing.
Comments: ** Comment from web user: linvi **

Hi,

The 2 first streams you described are located in the public stream section.

1. CreateSampleStream : [Public Stream statuses/sample](https://dev.twitter.com/streaming/reference/get/statuses/sample)
Endpoint : https://stream.twitter.com/1.1/statuses/sample.json
2. CreateFilteredStream : [Public Stream statuses/filter](https://dev.twitter.com/streaming/reference/post/statuses/filter)
Endpoint : https://stream.twitter.com/1.1/statuses/filter.json

*CreateTweetStream* is different. It is a solution allowing developers to easily access a Twitter stream that would not be implemented by Tweetinvi. As a result, the `StartStream` method is different and takes a URL as a parameter.

Therefore the sample stream could be created from a sample stream like this:

``` c#
var stream = Stream.CreateTweetStream();
stream.StartStream("https://stream.twitter.com/1.1/statuses/sample.json");
```

Please ask this kind of question on the discussion as this is not an issue.

Feel free to visit the new [stream documentation](https://github.com/linvi/tweetinvi/wiki/Streams) on github. This is a work in progress but you might find more information over there.

Cheers,
Linvi


Viewing all articles
Browse latest Browse all 4126

Trending Articles



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