{"size": 593, "ext": "js", "max_stars_repo_path": "index-travelfusion-hotel-location.js", "max_stars_repo_name": "m41highway/soap-nodejs-connector", "max_stars_repo_stars_event_min_datetime": "2019-09-13T07:00:23.000Z", "max_stars_repo_stars_event_max_datetime": "2019-09-13T07:00:23.000Z", "max_issues_repo_path": "index-travelfusion-hotel-location.js", "max_issues_repo_name": "m41highway/soap-nodejs-connector", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index-travelfusion-hotel-location.js", "max_forks_repo_name": "m41highway/soap-nodejs-connector", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.9444444444, "max_line_length": 266, "alphanum_fraction": 0.6728499157}
const httpreq = require('httpreq');
const config = require('./config.json');

httpreq.post(config.travelfusion.hotels.apiEndpoint, {
    headers: {
        'Content-Type': 'text/xml; charset=utf-8',
    },
    body: `<ResolveLocationRequest token="${config.travelfusion.hotels.token}" xmlns="http://www.travelfusion.com/xml/api/simple"><text>Lon</text><maxOptions>10</maxOptions><language>EN,FI</language><showSubLocations>true</showSubLocations></ResolveLocationRequest>`
}, function (err, res){
    if (err) {
        console.log(err);
    } else {
        console.log(res.body);
    }
})


