Yes authentication is basic. I am trying to convert the follow code to wix code splitting it between my hook in data.js file and my forms page code. I can not send the user and pass in the URL because they are my private API key and API secret.
Example with Node.js
const request = require(‘request’);
const url = ‘https://api.housecanary.com/v2/property/value’;
const postData = [
{‘address’: ‘43 Valmonte Plaza’, ‘zipcode’: ‘90274’},
{‘address’: ‘7500 Melrose Ave’, ‘zipcode’: ‘90046’}
];
request.post({
url: url,
auth: {
user: 'my_api_key',
pass: 'my_api_secret'
},
body: postData,
json: true
}, function (error, response, body) {
console.log(body);
});