MediaSelector
Index
Methods
get
Returns a StarlightItemResponse with a single MediaObject.
Note: MediaObjects are identified by their IDs, since they don’t have slugs.
Parameters
id: string | number
The media object ID.
Returns Promise<StarlightItemResponse<MediaObject>>
list
Returns a StarlightListResponse with the list of MediaObjects in this workspace.
Returns Promise<StarlightListResponse<MediaObject>>
A Selector that provide methods to list and request information on MediaObjects.
You can use a MediaSelector by accessing StarlightClient.media.