Using OAuth for a simple command line script to access Google's data
ARANK
I found that juggling Google's authorization codes, refresh tokens, and access tokens was not difficult; but also not clearly documented.