Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed readme formatting

  • Loading branch information...
commit e8af6ff9a3b58707998392b1c8a7aa5b11f6275e 1 parent fd1c202
@rowanu rowanu authored
Showing with 25 additions and 24 deletions.
  1. +25 −24 README.md
View
49 README.md
@@ -23,19 +23,19 @@ With a user and password:
ga = new GA.GA(config);
ga.login(function(err, token) {
- var options = {
- 'ids': 'ga:<profileid>',
- 'start-date': '2010-09-01',
- 'end-date': '2010-09-30',
- 'dimensions': 'ga:pagePath',
- 'metrics': 'ga:pageviews',
- 'sort': '-ga:pagePath'
- };
-
- GA.get(options, function(err, entries) {
+ var options = {
+ 'ids': 'ga:<profileid>',
+ 'start-date': '2010-09-01',
+ 'end-date': '2010-09-30',
+ 'dimensions': 'ga:pagePath',
+ 'metrics': 'ga:pageviews',
+ 'sort': '-ga:pagePath'
+ };
+
+ GA.get(options, function(err, entries) {
util.debug(JSON.stringify(entries));
- });
- });
+ });
+ });
If you have already gotten permission from a user, you can simply use the oAuth refresh token you have:
@@ -46,18 +46,19 @@ If you have already gotten permission from a user, you can simply use the oAuth
},
ga = new GA.GA(config);
- var options = {
- 'ids': 'ga:<profileid>',
- 'start-date': '2010-09-01',
- 'end-date': '2010-09-30',
- 'dimensions': 'ga:pagePath',
- 'metrics': 'ga:pageviews',
- 'sort': '-ga:pagePath'
- };
-
- GA.get(options, function(err, entries) {
- util.debug(JSON.stringify(entries));
- });
+
+ var options = {
+ 'ids': 'ga:<profileid>',
+ 'start-date': '2010-09-01',
+ 'end-date': '2010-09-30',
+ 'dimensions': 'ga:pagePath',
+ 'metrics': 'ga:pageviews',
+ 'sort': '-ga:pagePath'
+ };
+
+ GA.get(options, function(err, entries) {
+ util.debug(JSON.stringify(entries));
+ });
Rudamentary API
Please sign in to comment.
Something went wrong with that request. Please try again.