Document blurhash
This commit is contained in:
pare
bf61d4881e
commit
5f792c8bd8
S'han modificat 1 arxius amb 7 adicions i 0 eliminacions
|
@ -553,6 +553,7 @@ Media dicts
|
||||||
# rounded), and a "length" field giving a videos length in a human-readable format.
|
# rounded), and a "length" field giving a videos length in a human-readable format.
|
||||||
# Note that a video may have an image as preview.
|
# Note that a video may have an image as preview.
|
||||||
# May also contain a 'focus' dict.
|
# May also contain a 'focus' dict.
|
||||||
|
'blurhash': # The blurhash for the image, used for preview / placeholder generation
|
||||||
}
|
}
|
||||||
|
|
||||||
# Metadata dicts (image) - all fields are optional:
|
# Metadata dicts (image) - all fields are optional:
|
||||||
|
@ -1063,6 +1064,12 @@ These functions allow for convenient retrieval of paginated data.
|
||||||
.. automethod:: Mastodon.fetch_previous
|
.. automethod:: Mastodon.fetch_previous
|
||||||
.. automethod:: Mastodon.fetch_remaining
|
.. automethod:: Mastodon.fetch_remaining
|
||||||
|
|
||||||
|
Blurhash decoding
|
||||||
|
-----------------
|
||||||
|
This function allows for easy basic decoding of blurhash strings to images.
|
||||||
|
|
||||||
|
.. automethod:: Mastodon.decode_blurhash
|
||||||
|
|
||||||
Streaming
|
Streaming
|
||||||
---------
|
---------
|
||||||
These functions allow access to the streaming API.
|
These functions allow access to the streaming API.
|
||||||
|
|
Loading…
Referencia en una nova incidència