google/google-api-nodejs-client — pull request #184 by ryanseys (2014-06-04 17:13:23+00:00)
Title: DO NOT MERGE: Code review for code generation

Added `/apis/drive/v2.js` and `/apis/urlshortener/v1.js` in this PR as examples of generated code.

Example of using this new library:
```javascript
var google = require('googleapis');
var shortener = google.urlshortener('v1');
var OAuth2 = g.auth.OAuth2;
var oauth2Client = new OAuth2( /* ... */ );

/* Auth is same as current impl. */

oauth2Client.setCredentials({
access_token: ACCESS_TOKEN
});

var myShortener = shortener.auth({ apiKey: API_KEY /*, authClient: oauth2Client */ });

myShortener.url.insert({
body: {
longUrl: 'https://google.com'
},
query: {} // query unused here so this could be omitted
}, function(err, body) {
console.log(body);
});