gcalcli | Google Calendar Command Line Interface
kandi X-RAY | gcalcli Summary
kandi X-RAY | gcalcli Summary
Google Calendar Command Line Interface
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Imports the Calendar
- Iterate over field handlers
- Retry a HTTP method
- Inserts a row into a calendar
- Get argument parser
- Return an argument parser
- Return a cal query parser
- Return a parser for conflicts
- Delete an event
- Run add prompt
- Perform a quick add event
- Get start and stop times from a given duration
- Patch calendar events
- Query for events since last_updated_datetime
- List all calendars
- Parse the unparsed arguments
- Parse calendar names
- Query for events
- Validates input_str
- Validate a duration string
- Update Agenda
- Calculate cal query
- Add a new event
- Edit an event
- Retrieves the cached values from the cache
- Reminds reminders
gcalcli Key Features
gcalcli Examples and Code Snippets
office_availability = ~(primary_calendar | out_of_town) & workhours & weekdays
phone_availability = ~primary_calendar & workhours & weekdays
joint_availability = my_availability & your_availability
Community Discussions
Trending Discussions on gcalcli
QUESTION
I used this guide to create a Google calendar OAuth2 client id and client secret. I then used this gcalcli command to create an API access token:
...ANSWER
Answered 2022-Mar-13 at 10:56To be clear Access tokens
expire within an hour, Refresh tokens
are used to request a new access token when the refresh token has expired.
If you are seeing your app stopping working after seven days its due to the following. You are probably getting an invalid token
error.
If you check the documentation for expiration it states
A Google Cloud Platform project with an OAuth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days.
The solution is to set your app to production
I realize there's a way to use the refresh token to renew the access token, but it's not something I got around doing yet.
If you are seeing your code stop working after seven days something in your code is using the refresh token already. I did a bit of digging in gcalcli internally it uses the Google api python client library
. This is what is refreshing your access token. #L132
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gcalcli
You can use gcalcli like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page