aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-04-28 13:47:43 +0200
committerLorenz Diener <[email protected]>2019-04-28 13:47:43 +0200
commit06df1c281eb0825ec9f646960f4d9426eba7e081 (patch)
tree6f6d8607650773da3bb52bf89a01816342321e41 /docs
parent8e0d8a5c4e1e3f7ff6a23fe936388ca9fbdba990 (diff)
downloadmastodon.py-06df1c281eb0825ec9f646960f4d9426eba7e081.tar.gz
Add conversation fetching
Diffstat (limited to 'docs')
-rw-r--r--docs/index.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 4efebc6..9bbd6f7 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -329,6 +329,23 @@ Mention dicts
329 'id': # Mentioned users (local) account ID 329 'id': # Mentioned users (local) account ID
330 } 330 }
331 331
332Conversation dicts
333~~~~~~~~~~~~~~~~~~
334.. _conversation dict:
335
336.. code-block:: python
337
338 mastodon.conversations()[0]
339 # Returns the following dictionary:
340 {
341 'id': # The ID of this conversation object
342 'unread': # Boolean indicating whether this conversation has yet to be
343 # read by the user
344 'accounts': # List of accounts (other than the logged-in account) that
345 # are part of this conversation
346 'last_status': # The newest status in this conversation
347 }
348
332Hashtag dicts 349Hashtag dicts
333~~~~~~~~~~~~~ 350~~~~~~~~~~~~~
334.. _hashtag dict: 351.. _hashtag dict:
@@ -718,6 +735,7 @@ and local timelines.
718.. _timeline_hashtag(): 735.. _timeline_hashtag():
719.. automethod:: Mastodon.timeline_hashtag 736.. automethod:: Mastodon.timeline_hashtag
720.. automethod:: Mastodon.timeline_list 737.. automethod:: Mastodon.timeline_list
738.. automethod:: Mastodon.conversations
721 739
722Reading data: Statuses 740Reading data: Statuses
723---------------------- 741----------------------
Powered by cgit v1.2.3 (git 2.41.0)