Quantcast
Channel: Web Burning Blog » Download
Viewing all articles
Browse latest Browse all 10

Interact with Google Apps at the Command Line

$
0
0
Having a ball playing around with the just-released GoogleCL tool , which offers command line access to Google Calendar, contacts, Docs, Picasa, Blogger, and YouTube. With Python-based GoogleCL installed, you can do things such as list today's events on your GCal right in the terminal, like so: $ google calendar today title Coffee with Michael and Samir Dozing off Lunch at Flingers Instant use case: Add echo "Next 24 hours:";google calendar today title to your ~/.bash_profile file to see what you've got scheduled for the day when you launch a new Terminal window. Some more GoogleCL fun inside. If you just type google at the command line, you launch an interactive terminal that lets you try all the various commands. In the interactive terminal, type command-name help to see its options, like help calendar . Each command has several parameters that aren't immediately apparent. For example, in calendar, you can omit the long and hairy event URL by using the title parameter. You can list events for a particular day using the data parameter ( --date 2010-06-16 ), and you can get events from a particular calendar and by keyword search term. For example, to see all my trips to NYC on my TripIt calendar, I'd use the command: $ google calendar list --cal TripIt --query NYC Remember the beauty of the command line: you can easily chain commands together with the pipe, so you can sed , awk , and grep output to your heart's content, and then write it to a file if needed, using > .

Viewing all articles
Browse latest Browse all 10

Trending Articles