This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ Document images returned by the User List Media Admin API can include those generated by URL previews.
Original file line number Diff line number Diff line change 22
33These APIs allow extracting media information from the homeserver.
44
5+ Details about the format of the ` media_id ` and storage of the media in the file system
6+ are documented under [ media repository] ( ../media_repository.md ) .
7+
58To use it, you will need to authenticate by providing an ` access_token `
69for a server admin: see [ Admin API] ( ../usage/administration/admin_api ) .
710
Original file line number Diff line number Diff line change @@ -539,6 +539,11 @@ The following fields are returned in the JSON response body:
539539
540540### List media uploaded by a user
541541Gets a list of all local media that a specific ` user_id ` has created.
542+ These are media that the user has uploaded themselves
543+ ([ local media] ( ../media_repository.md#local-media ) ), as well as
544+ [ URL preview images] ( ../media_repository.md#url-previews ) requested by the user if the
545+ [ feature is enabled] ( ../development/url_previews.md ) .
546+
542547By default, the response is ordered by descending creation date and ascending media ID.
543548The newest media is on top. You can change the order with parameters
544549` order_by ` and ` dir ` .
@@ -635,7 +640,9 @@ The following fields are returned in the JSON response body:
635640 Media objects contain the following fields:
636641 - ` created_ts ` - integer - Timestamp when the content was uploaded in ms.
637642 - ` last_access_ts ` - integer - Timestamp when the content was last accessed in ms.
638- - ` media_id ` - string - The id used to refer to the media.
643+ - ` media_id ` - string - The id used to refer to the media. Details about the format
644+ are documented under
645+ [ media repository] ( ../media_repository.md ) .
639646 - ` media_length ` - integer - Length of the media in bytes.
640647 - ` media_type ` - string - The MIME-type of the media.
641648 - ` quarantined_by ` - string - The user ID that initiated the quarantine request
You can’t perform that action at this time.
0 commit comments