Im implementing PayU API with node.js. This is the request example for obtaining access token that is written in PayU´s documentation
curl -X POST https://secure.payu.com/pl/standard/user/oauth/authorize \
-d 'grant_type=client_credentials&client_id=145227&client_secret=12f071174cb7eb79d4aac5bc2f07563f'
It is a curl request , so it works well when it is sent from the command line, but I need to send it from express server. Any ideas how can this be done?