You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Import the GoogleCalendarAPI Class.fromgoogle_calendar_v3importGoogleCalendarAPI# Define a token handler for use on token refresh.defnew_token_handler(token):
# Do something with your token. Like stick it in a db.print"A new token arrived: "printtoken# Enter in your various credentials here.access_token="<YOUR_ACCESS_TOKEN>"refresh_token="<YOUR_REFRESH_TOKEN>"client_id="902453498010-ubvvvk714bada1o9tog10i3n5fq7cqm.apps.googleusercontent.com"client_secret="jK_7QqIZlcxzk-WuLo8Kyc9-"# Create an instance of the Google Calendar API.gapi=GoogleCalendarAPI(client_id=client_id, client_secret=client_secret,
acc_token=access_token, ref_token=refresh_token, expires_in=-30,
token_updater=new_token_handler)
# Do something with it.r=gapi.settings_list("dateFieldOrder")
printt.text
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: