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. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
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 ' |
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. |