//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' }) .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.11.1
help
Loading…