Skip to content

Commit

Permalink
Update README extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Barber committed Dec 6, 2012
1 parent 1eaeaf0 commit 4492c20
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
@@ -1,17 +1,21 @@
# gapi
clj-gapi
==========

A simple client for Google web service APIs that are described by the discovery document API. See https://developers.google.com/console for a full list of APIs that can be addressed by this. Ensure that a console project has been created for any access you wish to do!

## Usage
Usage
-------------------------

### Quick Start
Quick Start
-------------------------

For very simple API access, you can make an immediate call - in this case to the Google+ API.

(def auth (gapi.auth/create-auth "YOUR_API_KEY"))
(im "plus.activities/search" auth {"query" "clojure"})

### Other Usage
Other Usage
-------------------------

To list the available APIs and version, you can query the discovery document:

Expand Down Expand Up @@ -58,7 +62,8 @@ We can write as well. For example, here we can use the URL shortener API (which
(def result (call service "urlshortener.url/insert {} {"longUrl" "http://clojure.org"}))
(pprint result)

## License
License
-------------------------

Copyright (C) 2012 Google

Expand Down

0 comments on commit 4492c20

Please sign in to comment.