Method: workinglocations.day.read

Stay organized with collections Save and categorize content based on your preferences.

Looks up the all-day working location for a specified day. If no working location is set, returns NoLocation.

HTTP request

POST https://calendaruseravailability.googleapis.com/v1alpha/{calendar=workinglocations/*}/day:read

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
calendar

string

Required. The calendar where you want to read a working location. For example, "workinglocations/sara@example.com".

Request body

The request body contains data with the following structure:

JSON representation
{
  "date": {
    object (Date)
  }
}
Fields
date

object (Date)

Required. The date to query.

Response body

If successful, the response body contains data with the following structure:

A day.read response.

JSON representation
{
  "location": {
    object (WorkingLocation)
  }
}
Fields
location

object (WorkingLocation)

The location.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/calendar
  • https://www.googleapis.com/auth/calendar.readonly
  • https://www.googleapis.com/auth/calendar.workinglocation
  • https://www.googleapis.com/auth/calendar.workinglocation.readonly

For more information, see the OAuth 2.0 Overview.