MCPcopy Index your code
hub / github.com/ryanmcgrath/twython / sample

Method sample

twython/streaming/types.py:49–59  ·  view source on GitHub ↗

r"""Stream statuses/sample :param \*\*params: Parameters to send with your stream request Accepted params found at: https://developer.twitter.com/en/docs/tweets/sample-realtime/api-reference/get-statuses-sample

(self, **params)

Source from the content-addressed store, hash-verified

47 self.streamer._request(url, 'POST', params=params)
48
49 def sample(self, **params):
50 r"""Stream statuses/sample
51
52 :param \*\*params: Parameters to send with your stream request
53
54 Accepted params found at:
55 https://developer.twitter.com/en/docs/tweets/sample-realtime/api-reference/get-statuses-sample
56 """
57 url = 'https://stream.twitter.com/%s/statuses/sample.json' \
58 % self.streamer.api_version
59 self.streamer._request(url, params=params)
60
61 def firehose(self, **params):
62 r"""Stream statuses/firehose

Callers 1

Calls 1

_requestMethod · 0.45

Tested by 1