Document blurhash

This commit is contained in:
Lorenz Diener 2019-05-11 01:00:11 +02:00
pare bf61d4881e
commit 5f792c8bd8
S'han modificat 1 arxius amb 7 adicions i 0 eliminacions

Veure arxiu

@ -553,6 +553,7 @@ Media dicts
# rounded), and a "length" field giving a videos length in a human-readable format.
# Note that a video may have an image as preview.
# May also contain a 'focus' dict.
'blurhash': # The blurhash for the image, used for preview / placeholder generation
}
# 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_remaining
Blurhash decoding
-----------------
This function allows for easy basic decoding of blurhash strings to images.
.. automethod:: Mastodon.decode_blurhash
Streaming
---------
These functions allow access to the streaming API.