Skip to content

Latest commit

 

History

History
 
 

samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Samples for @americanexpress/targeted-offers-client

  • 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