Returns a list of media items picked by the user during the specified session.
A FAILED_PRECONDITION
error is returned if the user has not yet finished picking media items for the specified session. In this scenario, your application should poll sessions.get
until the session is ready before retrying this method.
HTTP request
GET https://photospicker.googleapis.com/v1/mediaItems
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
sessionId |
Required. The Google-generated identifier for this session. |
pageSize |
Optional. The maximum number of media items to return. The service may return fewer than this value (including zero results). If unspecified or set to 0, at most 50 media items is returned. The maximum value is 100; values above 100 will be coerced to 100. Negative values will result in an |
pageToken |
Optional. A page token, received from a previous |
Request body
The request body must be empty.
Response body
Response to the mediaItems.list
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"mediaItems": [
{
object ( |
Fields | |
---|---|
mediaItems[] |
A page of picked media items. |
nextPageToken |
If set, this field can be used as the If this field is omitted, there are no subsequent pages. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/photospicker.mediaitems.readonly