[General]
# Path to the calcurse binary that is used for importing/exporting items.
Binary = /usr/bin/calcurse

# Host name of the server that hosts CalDAV. Do NOT prepend a protocol prefix,
# such as http:// or https://. Append :<port> for a port other than 80.
Hostname = apidata.googleusercontent.com

# Path to the CalDAV calendar on the host specified above. This is the base
# path following your host name in the URL.
# The calendar ID on Google Calendar is usually your email address (for the
# default calendar).
Path = {{ '/caldav/v2/' ~ (google_calendar_id | default(omit)) ~ '/events/' }}

# Type of authentication to use. Must be "basic" or "oauth2"
AuthMethod = oauth2

# Disable this if you want to use HTTP instead of HTTPS.
# Using plain HTTP is highly discouraged.
HTTPS = Yes

# Enable this if you want to skip SSL certificate checks.
InsecureSSL = No

# This option allows you to filter the types of tasks synced. To this end, the
# value of this option should be a comma-separated list of item types, where
# each item type is either "event", "apt", "recur-event", "recur-apt", "todo",
# "recur" or "cal". Note that the comma-separated list must not contain any
# spaces. Refer to the documentation of the --filter-type command line argument
# of calcurse for more details. Set this option to "cal" if the configured
# CalDAV server doesn't support tasks, such as is the case with Google
# Calendar.
SyncFilter = cal

# Disable this option to actually enable synchronization. If it is enabled,
# nothing is actually written to the server or to the local data files. If you
# combine DryRun = Yes with Verbose = Yes, you get a log of what would have
# happened with this option disabled.
DryRun = No

# Enable this if you want detailed logs written to stdout
Verbose = No

# Use the following to synchronize with an OAuth2-based service
# such as Google Calendar.
[OAuth2]
ClientID = {{ google_oauth_client_id | default(None) }}
ClientSecret = {{ google_oauth_client_secret | default(None) }}

# Scope of access for API calls. Synchronization requires read/write.
Scope = https://www.googleapis.com/auth/calendar

# Change the redirect URI if you receive errors, but ensure that it is identical
# to the redirect URI you specified in the API settings.
RedirectURI = http://127.0.0.1
