We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2f1969 commit 1a22685Copy full SHA for 1a22685
src/indexingapi.js
@@ -1,14 +1,14 @@
1
'use strict';
2
3
require('isomorphic-fetch');
4
+const util = require('./util');
5
const Promise = require('es6-promise').Promise;
-const { Base64 } = require('js-base64');
6
7
const BASE_URL = 'https://api.addsearch.com/v2/indices/';
8
9
const getHeaders = function(sitekey, privatekey) {
10
return {
11
- 'Authorization': 'Basic ' + Base64.encode(sitekey + ':' + privatekey),
+ 'Authorization': 'Basic ' + util.base64(sitekey + ':' + privatekey),
12
'Content-Type': 'application/json'
13
};
14
}
0 commit comments