File: 05_statuses.rst

package info (click to toggle)
python-mastodon 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,836 kB
  • sloc: python: 9,438; makefile: 206; sql: 98; sh: 27
file content (96 lines) | stat: -rw-r--r-- 2,802 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Statuses, media and polls
=========================
.. py:module:: mastodon
    :no-index:
.. py:class: Mastodon

Statuses
--------
These functions allow you to get information about single statuses and to post and update them, as well as to favourite, bookmark, mute reblog ("boost") and to undo all of those.
For status pinning, check out TODO and TODO on the accounts page.

Reading
~~~~~~~
.. automethod:: Mastodon.status
.. automethod:: Mastodon.status_context
.. automethod:: Mastodon.status_reblogged_by
.. automethod:: Mastodon.status_favourited_by
.. automethod:: Mastodon.status_card
.. automethod:: Mastodon.status_history
.. automethod:: Mastodon.status_source
.. automethod:: Mastodon.statuses

.. automethod:: Mastodon.favourites

.. automethod:: Mastodon.bookmarks

Writing
~~~~~~~
.. _status_post():
.. automethod:: Mastodon.status_post
.. automethod:: Mastodon.status_reply
.. automethod:: Mastodon.toot
.. _make_poll():
.. automethod:: Mastodon.make_poll

.. automethod:: Mastodon.status_reblog
.. automethod:: Mastodon.status_unreblog

.. automethod:: Mastodon.status_favourite
.. automethod:: Mastodon.status_unfavourite

.. automethod:: Mastodon.status_mute
.. automethod:: Mastodon.status_unmute

.. automethod:: Mastodon.status_bookmark
.. automethod:: Mastodon.status_unbookmark

.. automethod:: Mastodon.status_delete
.. _status_update():    
.. automethod:: Mastodon.status_update
.. automethod:: Mastodon.generate_media_edit_attributes

Scheduled statuses
------------------
These functions allow you to get information about scheduled statuses and to update scheduled statuses that already exist.
To create new scheduled statuses, use :ref:`status_post() <status_post()>` with the `scheduled_at` parameter.

Reading
~~~~~~~
.. automethod:: Mastodon.scheduled_statuses
.. automethod:: Mastodon.scheduled_status

Writing
~~~~~~~
.. automethod:: Mastodon.scheduled_status_update
.. automethod:: Mastodon.scheduled_status_delete

Media
-----
This function allows you to upload media to Mastodon and update media uploads.
The returned media IDs (Up to 4 at the same time on a default configuration Mastodon instance) can then be used with post_status to attach media to statuses.

.. _media_post():
.. automethod:: Mastodon.media_post
.. automethod:: Mastodon.media_update
.. automethod:: Mastodon.media

Polls
-----
This function allows you to get and refresh information about polls as well as to vote in polls

Reading
~~~~~~~
.. automethod:: Mastodon.poll

Writing
~~~~~~~
.. automethod:: Mastodon.poll_vote

Translation
-----------
These functions allow you to get machine translations for statuses, if the instance supports it.

.. automethod:: Mastodon.status_translate