//simulates the following curl request: curl -d "request=get_products_in_category&id_category=1&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_contents_in_category', 'id_category': 1, '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 8.12.0
help
Loading…