googleapis
Advanced tools
Comparing version 0.2.1-alpha to 0.2.2-alpha
@@ -30,3 +30,3 @@ /** | ||
if (err) { | ||
console.log('One or more errors occured', err); | ||
console.log('One or more errors occurred', err); | ||
} else { | ||
@@ -33,0 +33,0 @@ console.log('Responses: ', results); |
@@ -124,3 +124,3 @@ /** | ||
* | ||
* @param {object} apiMeta Schema returned by Discvoery API. | ||
* @param {object} apiMeta Schema returned by Discovery API. | ||
* @param {string} methodName Method name. | ||
@@ -127,0 +127,0 @@ * @param {?object} params Parameters. |
@@ -18,3 +18,3 @@ /** | ||
var request = require('request'), | ||
package = require('../package.json'); | ||
pkg = require('../package.json'); | ||
@@ -31,3 +31,3 @@ /** | ||
DefaultTransporter.prototype.USER_AGENT = | ||
'google-api-nodejs-client/' + package.version; | ||
'google-api-nodejs-client/' + pkg.version; | ||
@@ -34,0 +34,0 @@ /** |
{ | ||
"name": "googleapis", | ||
"version": "0.2.1-alpha", | ||
"version": "0.2.2-alpha", | ||
"author": "Google Inc.", | ||
@@ -34,3 +34,6 @@ "description": "Google APIs Client Library for Node.js", | ||
}, | ||
"scripts": { | ||
"test": "mocha tests/*" | ||
}, | ||
"license": "Apache 2" | ||
} |
# google-api-nodejs-client [alpha] | ||
[![Build Status](https://travis-ci.org/google/google-api-nodejs-client.png)](https://travis-ci.org/google/google-api-nodejs-client) | ||
`google-api-nodejs-client` is the Google's officially supported | ||
@@ -55,3 +57,3 @@ [node.js](http://nodejs.org/) client | ||
client.withApiKey('YOUR API KEY HERE'); | ||
// make requestss | ||
// make requests | ||
}); | ||
@@ -110,3 +112,3 @@ | ||
A complete sample application that authorizes and authenticates with OAuth2.0 | ||
client is available at `examples/ouath2.js`. | ||
client is available at `examples/oauth2.js`. | ||
@@ -154,5 +156,5 @@ #### Consent Page Url | ||
oauth2Client.tokens = { | ||
access_token = 'ACCESS TOKEN HERE', | ||
refresh_token = 'REFRESH TOKEN HERE' | ||
oauth2Client.credentials = { | ||
access_token: 'ACCESS TOKEN HERE', | ||
refresh_token: 'REFRESH TOKEN HERE' | ||
}; | ||
@@ -172,20 +174,17 @@ | ||
Before making any contributions, please sign one of the contributors | ||
licenses below. | ||
Before making any contributions, please sign one of the contributor | ||
license agreements below. | ||
Fork the repo, develop and test your code changes. | ||
Install all depedencies including development requirements by running: | ||
Install all dependencies including development requirements by running: | ||
$ npm install -d | ||
Install mocha globally to be able to run the tests. | ||
Tests use mocha. To run all tests you can use | ||
$ npm install -g mocha | ||
$ npm test | ||
To run the unit tests, use the following command. Ensure that your code has an | ||
appropriate set of unit tests which all pass. | ||
which looks for tests in the `./tests` directory. | ||
$ mocha tests/* | ||
Your code should honor the | ||
@@ -192,0 +191,0 @@ [Google JavaScript Style Guide](http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml). |
@@ -38,3 +38,3 @@ /** | ||
it('should be able to generate default disovery url', function() { | ||
it('should be able to generate default discovery url', function() { | ||
var discoveryUrl = | ||
@@ -49,3 +49,3 @@ new googleapis.GoogleApis('plus', 'v3').generateDiscoveryUrl(); | ||
it('should be able to generate default disovery url with custom ' + | ||
it('should be able to generate default discovery url with custom ' + | ||
'base url and parameters configuration', function() { | ||
@@ -69,3 +69,3 @@ var discoveryUrl = new googleapis.GoogleApis('plus', 'v3', { | ||
new MockTransporter(__dirname + '/data/discovery_urlshortener.json'); | ||
var defaultUserAgent = 'google-api-nodejs-client/0.2.1-alpha'; | ||
var defaultUserAgent = 'google-api-nodejs-client/0.2.2-alpha'; | ||
@@ -72,0 +72,0 @@ it('should set default client user agent if none is set', function() { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
113972
22
2775
0
211