google-search-results-serpwow
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -218,4 +218,4 @@ 'use strict'; | ||
}, { | ||
key: "deleteBatch", | ||
value: function deleteBatch() { | ||
key: "stopBatch", | ||
value: function stopBatch() { | ||
for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) { | ||
@@ -230,8 +230,8 @@ args[_key9] = arguments[_key9]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0], {}, API_KEY); | ||
return httpDelete(url, options, cb, 'json'); | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/stop', {}, API_KEY); | ||
return httpGet(url, options, cb, 'json'); | ||
} | ||
}, { | ||
key: "getBatch", | ||
value: function getBatch() { | ||
key: "deleteBatch", | ||
value: function deleteBatch() { | ||
for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) { | ||
@@ -247,7 +247,7 @@ args[_key10] = arguments[_key10]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0], {}, API_KEY); | ||
return httpGet(url, options, cb, 'json'); | ||
return httpDelete(url, options, cb, 'json'); | ||
} | ||
}, { | ||
key: "listBatches", | ||
value: function listBatches() { | ||
key: "getBatch", | ||
value: function getBatch() { | ||
for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) { | ||
@@ -262,8 +262,8 @@ args[_key11] = arguments[_key11]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches', {}, API_KEY); | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0], {}, API_KEY); | ||
return httpGet(url, options, cb, 'json'); | ||
} | ||
}, { | ||
key: "updateBatchSearch", | ||
value: function updateBatchSearch() { | ||
key: "listBatches", | ||
value: function listBatches() { | ||
for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) { | ||
@@ -278,8 +278,8 @@ args[_key12] = arguments[_key12]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/' + args[1], {}, API_KEY); | ||
return httpPut(url, args[2], cb, 'json'); | ||
var url = createUrlFromEndpointAndOptions('/live/batches', {}, API_KEY); | ||
return httpGet(url, options, cb, 'json'); | ||
} | ||
}, { | ||
key: "deleteBatchSearch", | ||
value: function deleteBatchSearch() { | ||
key: "updateBatchSearch", | ||
value: function updateBatchSearch() { | ||
for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) { | ||
@@ -295,7 +295,7 @@ args[_key13] = arguments[_key13]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/' + args[1], {}, API_KEY); | ||
return httpDelete(url, options, cb, 'json'); | ||
return httpPut(url, args[2], cb, 'json'); | ||
} | ||
}, { | ||
key: "listBatchSearches", | ||
value: function listBatchSearches() { | ||
key: "deleteBatchSearch", | ||
value: function deleteBatchSearch() { | ||
for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) { | ||
@@ -310,8 +310,8 @@ args[_key14] = arguments[_key14]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/searches/' + args[1], {}, API_KEY); | ||
return httpGet(url, options, cb, 'json'); | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/' + args[1], {}, API_KEY); | ||
return httpDelete(url, options, cb, 'json'); | ||
} | ||
}, { | ||
key: "findBatchSearches", | ||
value: function findBatchSearches() { | ||
key: "listBatchSearches", | ||
value: function listBatchSearches() { | ||
for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) { | ||
@@ -326,10 +326,8 @@ args[_key15] = arguments[_key15]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/searches/' + args[1], {}, API_KEY, null, { | ||
q: args[2] | ||
}); | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/searches/' + args[1], {}, API_KEY); | ||
return httpGet(url, options, cb, 'json'); | ||
} | ||
}, { | ||
key: "listAllBatchSearchesAsJSON", | ||
value: function listAllBatchSearchesAsJSON() { | ||
key: "findBatchSearches", | ||
value: function findBatchSearches() { | ||
for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) { | ||
@@ -344,8 +342,10 @@ args[_key16] = arguments[_key16]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/searches/json', {}, API_KEY); | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/searches/' + args[1], {}, API_KEY, null, { | ||
q: args[2] | ||
}); | ||
return httpGet(url, options, cb, 'json'); | ||
} | ||
}, { | ||
key: "listAllBatchSearchesAsCSV", | ||
value: function listAllBatchSearchesAsCSV() { | ||
key: "listAllBatchSearchesAsJSON", | ||
value: function listAllBatchSearchesAsJSON() { | ||
for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) { | ||
@@ -360,8 +360,8 @@ args[_key17] = arguments[_key17]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/searches/csv', {}, API_KEY); | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/searches/json', {}, API_KEY); | ||
return httpGet(url, options, cb, 'json'); | ||
} | ||
}, { | ||
key: "listBatchResultSets", | ||
value: function listBatchResultSets() { | ||
key: "listAllBatchSearchesAsCSV", | ||
value: function listAllBatchSearchesAsCSV() { | ||
for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) { | ||
@@ -376,8 +376,8 @@ args[_key18] = arguments[_key18]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/results', {}, API_KEY); | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/searches/csv', {}, API_KEY); | ||
return httpGet(url, options, cb, 'json'); | ||
} | ||
}, { | ||
key: "getBatchResultSet", | ||
value: function getBatchResultSet() { | ||
key: "listBatchResultSets", | ||
value: function listBatchResultSets() { | ||
for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) { | ||
@@ -392,8 +392,8 @@ args[_key19] = arguments[_key19]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/results/' + args[1], {}, API_KEY); | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/results', {}, API_KEY); | ||
return httpGet(url, options, cb, 'json'); | ||
} | ||
}, { | ||
key: "getBatchResultSetAsCSV", | ||
value: function getBatchResultSetAsCSV() { | ||
key: "getBatchResultSet", | ||
value: function getBatchResultSet() { | ||
for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) { | ||
@@ -408,2 +408,17 @@ args[_key20] = arguments[_key20]; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/results/' + args[1], {}, API_KEY); | ||
return httpGet(url, options, cb, 'json'); | ||
} | ||
}, { | ||
key: "getBatchResultSetAsCSV", | ||
value: function getBatchResultSetAsCSV() { | ||
for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) { | ||
args[_key21] = arguments[_key21]; | ||
} | ||
var _splitArgsIntoOptions21 = splitArgsIntoOptionsAndCallback(args), | ||
params = _splitArgsIntoOptions21.params, | ||
options = _splitArgsIntoOptions21.options, | ||
cb = _splitArgsIntoOptions21.cb; | ||
var url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/results/' + args[1] + '/csv', {}, API_KEY); | ||
@@ -410,0 +425,0 @@ return httpGet(url, options, cb, 'json'); |
{ | ||
"name": "google-search-results-serpwow", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "Google Search Results Node JS API via SerpWow.com", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -70,2 +70,8 @@ 'use strict'; | ||
stopBatch (...args) { | ||
const { params, options, cb } = splitArgsIntoOptionsAndCallback(args); | ||
const url = createUrlFromEndpointAndOptions('/live/batches/' + args[0] + '/stop', {}, API_KEY); | ||
return httpGet(url, options, cb, 'json'); | ||
} | ||
deleteBatch (...args) { | ||
@@ -72,0 +78,0 @@ const { params, options, cb } = splitArgsIntoOptionsAndCallback(args); |
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
51968
821