yelp-api-v3
Advanced tools
Comparing version 1.2.0 to 1.3.0
22
index.js
@@ -17,2 +17,6 @@ "use strict"; | ||
const promise = new Promise((resolve, reject) => { | ||
console.log("first 3 characters of appId:"); | ||
console.log(str.substring(0, 2)); | ||
console.log("first 3 characters of appSecret:"); | ||
console.log(str.substring(0, 2)); | ||
request.post({ | ||
@@ -26,6 +30,8 @@ url: 'https://api.yelp.com/oauth2/token', | ||
}, (err, response, data) => { | ||
console.log("ERROR:"); | ||
console.log("ERROR 1:"); | ||
console.log(err); | ||
console.log("DATA:"); | ||
console.log("DATA 1:"); | ||
console.log(data); | ||
console.log("RESPONSE 1:"); | ||
console.log(response); | ||
if (!err && response.statusCode == 200) { | ||
@@ -62,6 +68,8 @@ this.accessToken = JSON.parse(data).access_token; | ||
}, (err, response, data) => { | ||
console.log("ERROR:"); | ||
console.log("ERROR 2:"); | ||
console.log(err); | ||
console.log("DATA:"); | ||
console.log("DATA 2:"); | ||
console.log(data); | ||
console.log("RESPONSE 2:"); | ||
console.log(response); | ||
if (!err && response.statusCode == 200) { | ||
@@ -81,6 +89,8 @@ resolve(data); | ||
}, (err, response, data) => { | ||
console.log("ERROR:"); | ||
console.log("ERROR 3:"); | ||
console.log(err); | ||
console.log("DATA:"); | ||
console.log("DATA 3:"); | ||
console.log(data); | ||
console.log("RESPONSE 3:"); | ||
console.log(response); | ||
if (!err && response.statusCode == 200) { | ||
@@ -87,0 +97,0 @@ resolve(data); |
{ | ||
"name": "yelp-api-v3", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Library to query Yelp's v3 API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9062
131