Instructions for the Google API Discovery Service Sample (http://goo.gl/cKxzB)

Usage

Examples using google call:
google call discovery v1 apis.getRest plus v1
google call plus v1 activities.list me public --max-results 3
google call calendar v3 calendarList.list
echo {\"summary\":\"temporary calendar\"} > /tmp/post.json && google call calendar v3 calendars.insert /tmp/post.json
  
Examples using google discover:
google discover
google discover plus v1
google discover calendar v3

Browse Online

Register Your Application

Checkout Instructions

Prerequisites: install Java 6, Mercurial, and Maven. You may need to set your JAVA_HOME .

    cd [someDirectory]
hg clone https://code.google.com/p/google-api-java-client.samples/ google-api-java-client-samples
cd google-api-java-client-samples/discovery-cmdline-sample
cp ~/Downloads/client_secrets.json src/main/resources/client_secrets.json
mvn assembly:assembly
alias google="[someDirectory]/google-api-java-client-samples/discovery-cmdline-sample/run_sample"
  

To enable logging of HTTP requests and responses (highly recommended when developing), please take a look at logging.properties.

Setup Project in Eclipse

Prerequisites: install Eclipse, the Mercurial plugin, and the Maven plugin.