billogramapi
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -12,4 +12,4 @@ 'use strict'; | ||
var authString = api_user + ':' + api_password; | ||
var base64Token = new Buffer(authString).toString('base64') | ||
this.token = 'NzQ3Ni1jRXVhRDhuaTplNTZlMzEwODg4NjNiZTNjNWVhMzJiNDQwYmUyNzAzMA=='; | ||
var base64Token = new Buffer("Hello World").toString('base64') | ||
this.token = base64Token; | ||
} | ||
@@ -46,5 +46,15 @@ | ||
makeRequest(rest.post, this.uri + '/customer', {data: customerData, headers: {'Content-Type': 'application/json', 'Authorization' : 'Basic' + this.token}}, callback); | ||
makeRequest( | ||
rest.post, this.uri + '/customer', | ||
{ | ||
data: customerData, | ||
headers: { | ||
'Content-Type': 'application/json', | ||
'Authorization' : 'Basic' + this.token | ||
} | ||
}, | ||
callback | ||
); | ||
}; | ||
exports.Customer = Customer; |
{ | ||
"name": "billogramapi", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "Wrapper for Billograms 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
64
2227