aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2016-11-25 15:39:53 +0100
committerLorenz Diener <[email protected]>2016-11-25 15:39:53 +0100
commit2729ca19319edcc7a0d8df3e211010ccf857b211 (patch)
tree62246a87aa1286933c9d82b217445a9634bb4fcc /docs/index.rst
parent2a63df2b63d6339e8b6cf75182271caa745ddf5b (diff)
downloadmastodon.py-2729ca19319edcc7a0d8df3e211010ccf857b211.tar.gz
More "timeline" functions, "notifications"
Diffstat (limited to 'docs/index.rst')
-rw-r--r--docs/index.rst16
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 6439f69..a91cfb7 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -37,8 +37,11 @@ as a single python module. By default, it talks to the
37`Mastodon flagship instance`_, but it can be set to talk to any 37`Mastodon flagship instance`_, but it can be set to talk to any
38node running Mastodon. 38node running Mastodon.
39 39
40Unless otherwise specified, all data is returned as python
41dictionaries, matching the JSON format used by the API.
40For complete documentation on what every function returns, 42For complete documentation on what every function returns,
41check the `Mastodon API docs`_, or just play around a bit. 43check the `Mastodon API docs`_, or just play around a bit - the
44format of the data is generally very easy to understand.
42 45
43.. py:module:: mastodon 46.. py:module:: mastodon
44.. py:class: Mastodon 47.. py:class: Mastodon
@@ -68,6 +71,10 @@ This function allows you to access the timelines a logged in
68user could see, as well as hashtag timelines and the public timeline. 71user could see, as well as hashtag timelines and the public timeline.
69 72
70.. automethod:: Mastodon.timeline 73.. automethod:: Mastodon.timeline
74.. automethod:: Mastodon.timeline_home
75.. automethod:: Mastodon.timeline_mentions
76.. automethod:: Mastodon.timeline_public
77.. automethod:: Mastodon.timeline_hashtag
71 78
72Reading data: Statuses 79Reading data: Statuses
73---------------------- 80----------------------
@@ -78,6 +85,13 @@ These functions allow you to get information about single statuses.
78.. automethod:: Mastodon.status_reblogged_by 85.. automethod:: Mastodon.status_reblogged_by
79.. automethod:: Mastodon.status_favourited_by 86.. automethod:: Mastodon.status_favourited_by
80 87
88Reading data: Notifications
89---------------------------
90This function allows you to get information about a users notifications.
91
92.. automethod:: Mastodon.notifications
93
94
81Reading data: Accounts 95Reading data: Accounts
82---------------------- 96----------------------
83These functions allow you to get information about accounts and 97These functions allow you to get information about accounts and
Powered by cgit v1.2.3 (git 2.41.0)