Skip to main content
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日 21: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