入れてみた。Python 2 系が必要みたい。
# Python 2.7.3 の virtualenv 環境 py2 にて試す。 # ディレクトリの場所は %HOME%\Projects\py2 。 > pip install gdata > pip install googlecl
%HOME%\Projects\py2\Scripts に google というコマンドが入っているのでこれを python から実行する。
> python %HOME%\Projects\py2\Scripts\google calendar add "lunch tomorrow" Please specify user:
ユーザ名をきかれるので入力すると以下の文章が表示され、ブラウザが立ち上がり認証画面が表示される。
Please log in and/or grant access via your browser at https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=4%2FKfPV7La**************************X4&hd=default then hit enter.
認証を済ませてコマンドプロンプトに戻り、Enter を入力すると Google Calendar でイベントが作成されていた。
参照したページ
- GoogleCLを利用してWindowsのデスクトップからドラッグ&ドロップでpicasaに画像投稿するバッチスクリプト | Futurismo
- GoogleCLをWindows上で使う - ZeBeVogue別館
- Manual - googlecl - How to use GoogleCL. - Command line tools for the Google Data APIs - Google Project Hosting
- ExampleScripts - googlecl - Example commands and tasks GoogleCL can do. - Command line tools for the Google Data APIs - Google Project Hosting