### Complete Calcurse-CalDAV Configuration Example Source: https://calcurse.org/files/calcurse-caldav.html A comprehensive example of a calcurse-caldav configuration file for a Gmail account, including OAuth2 credentials and synchronization settings. ```config [General] ... Hostname = apidata.googleusercontent.com Path = /caldav/v2/example@gmail.com/events/ AuthMethod = oauth2 SyncFilter = cal ... [OAuth2] ClientID = 22802342jlkjlksjdlfkjq1htpvbcn.apps.googleusercontent.com ClientSecret = XPYGqHFsfF343GwJeOGiUi Scope = https://www.googleapis.com/auth/calendar RedirectURI = http://127.0.0.1 ``` -------------------------------- ### Secure Password Authentication with Environment Variable Source: https://calcurse.org/files/calcurse-caldav.html Pass the password securely using the CALCURSE_CALDAV_PASSWORD environment variable, for example, with the 'pass' utility. ```bash CALCURSE_CALDAV_PASSWORD=$(pass show calcurse) calcurse-caldav ``` -------------------------------- ### OAuth2 Authentication Configuration Source: https://calcurse.org/files/calcurse-caldav.html To enable OAuth2 authentication, modify the AuthMethod in the config file to 'oauth2' and provide the necessary ClientID, ClientSecret, Scope, and RedirectURI obtained from the API provider. Ensure the 'oauth2client' library is installed. ```ini AuthMethod: "oauth2" ClientID: "..." ClientSecret: "..." Scope: "..." RedirectURI: "..." ``` -------------------------------- ### Calcurse-CalDAV Initialization Modes Source: https://calcurse.org/files/calcurse-caldav.html Use these arguments when running calcurse-caldav for the first time to set the synchronization direction. ```bash --init=keep-remote Remove all local calcurse items and import remote objects ``` ```bash --init=keep-local Remove all remote objects and push local calcurse items ``` ```bash --init=two-way Copy local objects to the CalDAV server and vice versa ``` -------------------------------- ### Initializing Synchronization with Authorization Code Source: https://calcurse.org/files/calcurse-caldav.html This command initializes the calcurse-caldav synchronization process after obtaining an authorization code. The `--init keep-remote` flag ensures remote data is kept, and the `--authcode` flag provides the necessary authorization. ```bash calcurse-caldav --init keep-remote --authcode '4/Ok6mBNW2nppfIwyL-Q1ZPVkEk3zZdZN3mHcY#' ``` -------------------------------- ### Calcurse-CalDAV Configuration Parameters Source: https://calcurse.org/files/calcurse-caldav.html These parameters are essential for setting up the connection to Google Calendar. Ensure the Path is correctly formatted with your Calendar ID. ```config Hostname = apidata.googleusercontent.com Path = /caldav/v2/*your_calendar_id_here*/events/ Scope = https://www.googleapis.com/auth/calendar SyncFilter = cal ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.