var request = require('request');
var options = {
'method': 'POST',
'url': 'https://api.thevalohub.com/loadouts',
'headers': {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
"riotid": "RIOT_ID"
})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});