//simulates the following curl request: curl -d "request=get_product_details&id_product=98&language=en_EN" -X POST https://sleekshop.sleekshop.net/srv/service/ var getJSON = require("async-get-json"); const curl = new (require( 'curl-request' ))(); curl .setBody({ 'request': 'get_product_details', 'id_product': 98, 'language': 'en_EN', 'licence_username': 'sleekshop_ADX8KeMySoOxWyWQB6Bq', 'licence_password': 'K1GdllanWiQBHanDNjng' }).post('https://sleekshop.sleekshop.net/srv/service/') .then(({statusCode, body, headers}) => { console.log(body)}) .catch((e) => { console.log(e); });
Save on
Powered by
Node 10.14.1
help
Loading…