Resource: PickingSession
Representation of a user session during which the user can pick photos and videos using Google Photos.
JSON representation |
---|
{ "id": string, "pickerUri": string, "pollingConfig": { object ( |
Fields | |
---|---|
id |
Output only. The Google-generated identifier for this session. |
pickerUri |
Output only. The URI used to redirect the user to Google Photos (on web) so they can pick photos and videos for the current session. To view this page successfully, the user must be logged into the Google account that owns this session in their web browser. The |
pollingConfig |
Output only. The recommended configuration that applications should use while polling This field is only populated if media items have not yet been picked for this session (i.e., |
expireTime |
Output only. Time when access to this session (and its picked media items) will expire. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
pickingConfig |
Optional. Photo-picking configuration for the user's picking experience during this session. This is specified by the client application when calling |
mediaItemsSet |
Output only. If set to |
PollingConfig
Configuration for polling the API.
JSON representation |
---|
{ "pollInterval": string, "timeoutIn": string } |
Fields | |
---|---|
pollInterval |
Output only. Recommended time between poll requests. A duration in seconds with up to nine fractional digits, ending with ' |
timeoutIn |
Output only. The length of time after which the client should stop polling. A value of 0 indicates that the client should stop polling if it hasn't already. A duration in seconds with up to nine fractional digits, ending with ' |
PickingConfig
Client-specified configuration for the user's picking experience during this session.
JSON representation |
---|
{ "maxItemCount": string } |
Fields | |
---|---|
maxItemCount |
Optional. The maximum number of items that the user can pick during this session. Defaults to 2000 if not specified. If unspecified or set to 0, at most 2000 items can be picked. Values above 2000 will be coerced to 2000. Negative values will result in an |
Methods |
|
---|---|
|
Generates a new session during which the user can pick photos and videos for third-party access. |
|
Deletes the specified session. |
|
Retrieves information about the specified session. |