Robert Vice
08/19/2021, 3:47 PMbattk
08/19/2021, 3:48 PMbattk
08/19/2021, 3:48 PMRobert Vice
08/19/2021, 3:49 PMRobert Vice
08/19/2021, 4:22 PMbattk
08/19/2021, 4:23 PMbattk
08/19/2021, 4:23 PMbattk
08/19/2021, 4:24 PMbattk
08/19/2021, 4:24 PMRobert Vice
08/19/2021, 4:26 PMconst response = https.get({
url: 'https://<mypingpongurl>',
headers: {
ApiKey: 'custsecret_api_key'
}
});
If I change the custsecret_api_key (NS API Secrets ID) to my actual API key, it functions as expected.battk
08/19/2021, 4:29 PMbattk
08/19/2021, 4:30 PM'{custsecret_api_key}'
battk
08/19/2021, 4:31 PMbattk
08/19/2021, 4:32 PMRobert Vice
08/19/2021, 4:33 PMRobert Vice
08/19/2021, 4:36 PMbattk
08/19/2021, 4:36 PMbattk
08/19/2021, 4:37 PMRobert Vice
08/19/2021, 4:39 PMbattk
08/19/2021, 4:43 PMbattk
08/19/2021, 4:43 PMNicholas Penree
08/19/2021, 5:40 PMcredentials
is not available on a GET
since it searches bodies and body doesn't exist on a GET requestNicholas Penree
08/19/2021, 5:42 PMconst ApiKey = https.createSecureString({
input: '{custsecret_api_key}'
});
const response = https.get({
url: 'https://<mypingpongurl>',
headers: { ApiKey },
});
Robert Vice
08/20/2021, 7:22 AM