Skip to content

Commit dad5704

Browse files
committed
merged
2 parents d262888 + 9b8eed8 commit dad5704

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

‎README.rst‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ stream-python is a Python client for `Stream <https://getstream.io/>`_.
1616
# Instantiate a feed object
1717
user_feed_1 = client.feed('user:1')
1818
19-
# Get activities from 5 to 10
19+
# Get activities from 5 to 10 (slow pagination)
2020
result = user_feed_1.get(limit=5, offset=5)
21-
activities = result['activities']
21+
# (Recommended) Use the faster pk_lt type of pagination
22+
result = user_feed_1.get(limit=5, pk_lt=112334)
2223
2324
# Create a new activity
2425
activity_data = {'actor': 1, 'verb': 'tweet', 'object': 1}
@@ -32,6 +33,16 @@ stream-python is a Python client for `Stream <https://getstream.io/>`_.
3233
3334
# Stop following another feed
3435
user_feed_1.unfollow('flat:42')
36+
37+
38+
Docs are available on `GetStream.io`_.
39+
40+
.. _GetStream.io: http://getstream.io/docs/
41+
42+
43+
API docs are on `Read the docs`_.
44+
45+
.. _Read the docs: http://stream-python.readthedocs.org/en/latest/
3546

3647

3748
Installation

0 commit comments

Comments
 (0)