- Before executing update config.json in samples directory with the values.
{
"rootUrl": "api.qa2s.americanexpress.com",
"authentication": {
"clientKey": "",
"clientSecret": ""
},
"mutualAuth": {
"privateKey": "",
"publicCert": ""
},
"httpProxy": {
"isEnabled": false,
"host": "",
"port": ""
},
"payloadEncryption": {
"isEnabled": false,
"publicKeyCert": ""
}
}
run the following
npm install
- please run individual files to run the samples.
node <'sample file name'>
example :
node authentication.js