adwords-reports-nodejs-lib
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "adwords-reports-nodejs-lib", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Node.js library for pulling AdWords API reports.", | ||
@@ -13,7 +13,3 @@ "main": ".index.js", | ||
}, | ||
"keywords": [ | ||
"AdWords API", | ||
"AdWords API reports", | ||
"AdWords" | ||
], | ||
"keywords": ["AdWords API", "AdWords API reports", "AdWords"], | ||
"author": "Thomas Steiner (@tomayac, tomac@google.com)", | ||
@@ -20,0 +16,0 @@ "license": "Apache-2.0", |
@@ -29,3 +29,3 @@ /** | ||
var DEBUG = false; | ||
var DEBUG = true; | ||
@@ -66,2 +66,4 @@ // From the API console | ||
request.get(options, function(err, response) { | ||
console.log(err) | ||
console.log(response.statusCode) | ||
if (!err && response.statusCode === 200) { | ||
@@ -234,3 +236,3 @@ console.log('Visit the following URL in your browser:\n' + | ||
} | ||
OAuth._retrieveOAuthCredentials(); | ||
OAuth._retrieveOAuthCredentials(callback); | ||
if (ACCESS_TOKEN && now < TOKEN_EXPIRY) { | ||
@@ -237,0 +239,0 @@ if (DEBUG) { |
@@ -25,3 +25,3 @@ /** | ||
// Check that the .env file exists at all | ||
var dotEnvSample = fs.readFileSync(appRoot + '/dot_env'); | ||
var dotEnvSample = fs.readFileSync(__dirname + '/../dot_env'); | ||
try { | ||
@@ -28,0 +28,0 @@ fs.accessSync(appRoot + '/.env', fs.F_OK); |
31371
445