I want to pass body parameters as shown in screen shot
(in text/plain format)
I am using axios in my nodejs/express project . My reqeust format is as shown below:
var config = { headers: { 'Content-Length': 0, 'Content-Type': 'text/plain' } }; const testInput = (req, res) => { axios.post('https://api.sandbox.xyz.com/v1/order/new', { firstName: 'Marlon' }, config) .then(function(response) { console.log('saved successfully') }) .catch(function(error) { console.log(error); }); }; For this how can I pass the body parameters appropriately?
{ "request": "/v1/order/new", "nonce": 123457, "client_order_id": "20150102-4738721", "symbol": "btcusd", "amount": "34.12", "price": "622.13", "side": "buy", "type": "exchange limit" }as body parameter, how would I do that?{ firstName: '...' }you use that object you just posted?