Skip to content
Browse files

fixed Authorization header for when using an access token

  • Loading branch information...
1 parent 01449ae commit 0e173028cf8acb4535099b6a03ba5ced7fd8b777 @bsphere bsphere committed Jan 27, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 README.md
  2. +1 −1 lib/ga.js
  3. +1 −1 package.json
View
4 README.md
@@ -37,12 +37,12 @@ With a user and password:
});
});
-If you have already gotten permission from a user, you can simply use the oAuth refresh token you have:
+If you have already gotten permission from a user, you can simply use the oAuth access token you have:
var GA = require('googleanalytics'),
util = require('util'),
config = {
- "token": "Auth=XXXXXXXXXXX"
+ "token": "XXXXXXXXXXXX"
},
ga = new GA.GA(config);
View
2 lib/ga.js
@@ -102,7 +102,7 @@ GA.prototype.get = function(options, cb) {
path: data_url,
method: 'GET',
headers: {
- Authorization:"GoogleLogin "+this.token,
+ Authorization:"Bearer "+this.token,
"GData-Version": 2
}
};
View
2 package.json
@@ -2,7 +2,7 @@
"name": "googleanalytics",
"main": "./lib/ga",
"description": "Google Analytics library.",
- "version": "0.3.0",
+ "version": "0.3.1",
"author": "Nick Campbell (http://github.com/ncb000gt)",
"contributors": [
{ "name": "Brian Zeligson (http://github.com/beezee)", "email": "brian.zeligson@gmail.com" },

0 comments on commit 0e17302

Please sign in to comment.
Something went wrong with that request. Please try again.