
답변 4개
Hi Rafael, Believe that you API uses Basic Authentication that you wanted to consume from Salesforce using APEX. Seems that problem is with below line.
String authorizationHeader = 'BASIC' + EncodingUtil.base64Encode(auth);
There must be space between BASIC and Base64 encoded String replace above line with below line.
Try the code and let me know if this helps :)Thanks!String authorizationHeader = 'Basic ' + EncodingUtil.base64Encode(auth);