From f734a45fb667baf40d2cae3696934f91f1d5d8d0 Mon Sep 17 00:00:00 2001 From: Erin Congden Date: Sun, 2 Apr 2017 18:46:43 -0700 Subject: Added spoiler text support --- docs/index.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/index.rst b/docs/index.rst index 121dc83..39af190 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -108,7 +108,7 @@ Toot dicts mastodon.toot("Hello from Python") # Returns the following dictionary: { - 'sensitive': Denotes whether the toot is marked sensitive + 'sensitive': Denotes whether media attachments to the toot are marked sensitive 'created_at': Creation time 'mentions': A list of account dicts mentioned in the toot 'uri': Descriptor for the toot @@ -123,6 +123,7 @@ Toot dicts 'reblog': Denotes whether the toot is a reblog 'url': URL of the toot 'content': Content of the toot, as HTML: '

Hello from Python

' + 'spoiler_text': Warning text that should be displayed before the toot content 'favourited': Denotes whether the logged in user has favourited this toot 'account': Account dict for the logged in account } -- cgit v1.2.3 From 9eaf955bfc8bda2a2e114721347f9b2ccf06b055 Mon Sep 17 00:00:00 2001 From: Erin Congden Date: Sun, 2 Apr 2017 10:35:42 -0700 Subject: Added local timeline support --- docs/index.rst | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/index.rst b/docs/index.rst index 39af190..90e8478 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -206,6 +206,7 @@ user could see, as well as hashtag timelines and the public timeline. .. automethod:: Mastodon.timeline .. automethod:: Mastodon.timeline_home .. automethod:: Mastodon.timeline_mentions +.. automethod:: Mastodon.timeline_local .. automethod:: Mastodon.timeline_public .. automethod:: Mastodon.timeline_hashtag -- cgit v1.2.3 From 36781699c135b3a4cd89973ef2f5079f123a0567 Mon Sep 17 00:00:00 2001 From: Erin Congden Date: Sun, 2 Apr 2017 20:20:38 -0700 Subject: Add (un)muting accounts and reading mutes/blocks --- docs/index.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs') diff --git a/docs/index.rst b/docs/index.rst index 90e8478..f9915e6 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -139,6 +139,7 @@ Relationship dicts 'following': Boolean denoting whether you follow them 'id': Numerical id (same one as ) 'blocking': Boolean denoting whether you are blocking them + 'muting': Boolean denoting whether you are muting them } Notification dicts @@ -238,6 +239,14 @@ their relationships. .. automethod:: Mastodon.account_relationships .. automethod:: Mastodon.account_search +Reading data: Mutes and blocks +------------------------------ +These functions allow you to get information about accounts that are +muted or blocked by the logged in user. + +.. automethod:: Mastodon.mutes +.. automethod:: Mastodon.blocks + Writing data: Statuses ---------------------- These functions allow you to post statuses to Mastodon and to @@ -260,6 +269,8 @@ These functions allow you to interact with other accounts: To (un)follow and .. automethod:: Mastodon.account_unfollow .. automethod:: Mastodon.account_block .. automethod:: Mastodon.account_unblock +.. automethod:: Mastodon.account_mute +.. automethod:: Mastodon.account_unmute Writing data: Media ------------------- -- cgit v1.2.3 From 38ebcda76bc0c264f8384f55c5b32bf049b2d6be Mon Sep 17 00:00:00 2001 From: Erin Congden Date: Sun, 2 Apr 2017 20:48:10 -0700 Subject: Added getting a list of favourited toots --- docs/index.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') diff --git a/docs/index.rst b/docs/index.rst index f9915e6..9dc37e5 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -247,6 +247,13 @@ muted or blocked by the logged in user. .. automethod:: Mastodon.mutes .. automethod:: Mastodon.blocks +Reading data: Favourites +------------------------ +This function allows you to get information about statuses favourited +by the authenticated user. + +.. authomethod:: Mastodon.favourites + Writing data: Statuses ---------------------- These functions allow you to post statuses to Mastodon and to -- cgit v1.2.3 From ca0b6c115bcb8f6b79b22f5ccd648a2d6b7d7fc5 Mon Sep 17 00:00:00 2001 From: Erin Congden Date: Sun, 2 Apr 2017 20:53:32 -0700 Subject: Added follow requests support --- docs/index.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs') diff --git a/docs/index.rst b/docs/index.rst index 9dc37e5..8be642a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -99,6 +99,7 @@ User dicts 'header': URL for their header image 'id': Same as 'username': The username (what you @ them with) + 'locked': Denotes whether the account can be followed without a follow request } Toot dicts @@ -140,6 +141,7 @@ Relationship dicts 'id': Numerical id (same one as ) 'blocking': Boolean denoting whether you are blocking them 'muting': Boolean denoting whether you are muting them + 'requested': Boolean denoting whether you have sent them a follow request } Notification dicts @@ -254,6 +256,13 @@ by the authenticated user. .. authomethod:: Mastodon.favourites +Reading data: Follow requests +----------------------------- +This function allows you to get a list of pending incoming follow +requests for the authenticated user. + +.. automethod:: Mastodon.follow_requests + Writing data: Statuses ---------------------- These functions allow you to post statuses to Mastodon and to @@ -279,6 +288,13 @@ These functions allow you to interact with other accounts: To (un)follow and .. automethod:: Mastodon.account_mute .. automethod:: Mastodon.account_unmute +Writing data: Follow requests +----------------------------- +These functions allow you to accept or reject incoming follow requests. + +.. automethod:: Mastodon.follow_request_authorize +.. automethod:: Mastodon.follow_request_reject + Writing data: Media ------------------- This function allows you to upload media to Mastodon. The returned -- cgit v1.2.3