All Questions
2 questions
0
votes
0
answers
2k
views
How to use Named Credentials in a Basic Auth callout with API key?
This initial code works perfectly to do a Callout with UN, PW and API key in Custom Settings.
But this is less secure and so I want to move teh UN & PW to Named Credentials.
but it fails.
This ...
1
vote
3
answers
15k
views
UserName and Password in Request body of apex callout using Named Credentials
I am able to make an apex callout by passing the username and password in the request body.
String endpoint='https://xyz...com/';
String userID='xyz';
String password='pass';
String jsonBody ='userID=...