I am working on a script to get google contacts using google contacts api gem . I can successfully access the token using this code:
require 'rubygems' require 'launchy' require 'oauth2' require 'googlecontacts' require 'google_contacts_api'
Problem:
I know that this is not the best way to do this, because it is tiring. every time I run the script, the user provides access instructions. And also I need to manually copy the marker pack from the browser to the terminal.
Question:
How can I save the extracted token, and when it has expired, how can I update it?
source share