vivekv
vivekv

Reputation: 2298

Google calendar V3 and Command line applications

I am trying to develop a simple python application that does not use a webserver / appserver etc., and its a plain vanilla CLI app.

From what I have been reading on the Google Calendar client API V3, there is really no way to authenticate a CLI app without using a browser thanks to OAuth 2.0.

I am building an application that I want to ideally run in the background and making updates to my calendar. How do I do that when a browser intervention is required for authentication ? Have I understood it wrong? Please help.

PS : V2 of the API has the webservice to end point ClientLogin that seems to do this but I really want to use the latest API if I can.

Upvotes: 1

Views: 983

Answers (1)

Rapolas K.
Rapolas K.

Reputation: 1709

if you follow an example here: https://developers.google.com/google-apps/calendar/instantiate, you will have to authenticate only once with a browser, after you will find a 'calendat.dat' (or whatever name you choose) file, which will contain oauth token information and going to be used in further communications.

Upvotes: 1

Related Questions