You need to sign in to do that
Don't have an account?
sasham
anyone answe pls
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
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
http://www.crmscience.com/single-post/2016/04/15/Apex-for-REST-Integration-Overview-of-the-Callout
I think below is what you are looking into:
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.