pipelinedeals
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -8,3 +8,3 @@ var request = require('request'); | ||
if (!options.endpoint || !options.apiKey) { | ||
callback('options.endpoint and options.apiKey are both required'); | ||
return callback('options.endpoint and options.apiKey are both required'); | ||
} | ||
@@ -29,2 +29,6 @@ | ||
if(!body.entries) { | ||
return callback(null, [body]); | ||
} | ||
allEntries = allEntries.concat(body.entries); | ||
@@ -31,0 +35,0 @@ |
{ | ||
"name": "pipelinedeals", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Easier access to the PipelineDeals API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,6 +5,12 @@ # pipelinedeals | ||
It will always return an array of entries (even with the profile.json call) | ||
##Usage | ||
``` | ||
var pld = require('pipelinedeals'); | ||
pld.get({endpoint: 'deals.json', apiKey: 'INSERT_API_KEY_HERE'}, function(err, entries, allInfo){ | ||
var options = { | ||
endpoint: 'deals.json', | ||
apiKey: 'INSERT_API_KEY_HERE' | ||
}; | ||
pld.get(options, function(err, entries){ | ||
//here you have access to the data from the call | ||
@@ -11,0 +17,0 @@ }); |
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
3500
5
44
29