Skip to main content
Sooriya Kan (achievers) 님이 #Apex에 질문했습니다
It is in Curl for makign Api calout for post method 

curl -H 'Accept: application/xml' -H 'Content-Type:application/xml' \

-u api_key:api_token -d '<message><data><result>

<id>123</id>

<address>cc</address>

<value>5</value>

</result></data></hl7message>'\

'https://example.com/customers/2342/messages

But How do make callout in Apex calss forthe above 

Specially for authentication  -u api_key:api_token

I have api key and token 
답변 2개
  1. 2018년 1월 18일 오후 9:59
    Thank you Nayana . I will try this and let you know

    I have one meore question 

    We need to set up URL  in our end  to receive some kind of notification from external system

    For that, we need to authenticate the request 

    Could you please let me know if salesforce support HTTP Basic Authetication for incomming request. Since They (External system) are not supprting OAUth authetication.
0/9000