function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MDhillonMDhillon 

REST API Callouts to consume an external REST based API

Hi,

I want to use REST API callouts from Salesforce to an external website's REST based API to pull and push the data into the salesforce.

Could anyone please provide me the sample code if anybody has done that  before?

regards,
Mani
Best Answer chosen by MDhillon
Ashish_SFDCAshish_SFDC

Hi Mani, 


See the sample code in the thread below,

http://salesforce.stackexchange.com/questions/25852/calling-an-external-rest-service-in-apex

http://www.blacktabgroup.com/keeping-tabs/posts/2012/october/forcecom-development-calling-external-restful-services.aspx

http://blogforce9.blogspot.in/2013/09/salesforce-rest-webservices-part-i.html

Main doc: http://wiki.developerforce.com/page/REST_API


Regards,

Ashish
 

All Answers

Ashish_SFDCAshish_SFDC

Hi Mani, 


See the sample code in the thread below,

http://salesforce.stackexchange.com/questions/25852/calling-an-external-rest-service-in-apex

http://www.blacktabgroup.com/keeping-tabs/posts/2012/october/forcecom-development-calling-external-restful-services.aspx

http://blogforce9.blogspot.in/2013/09/salesforce-rest-webservices-part-i.html

Main doc: http://wiki.developerforce.com/page/REST_API


Regards,

Ashish
 

This was selected as the best answer
MDhillonMDhillon
Thanks a lot Ashish !!
farukh sk hdfarukh sk hd
Hi,

This  will help you for sure.Here rest api integration is performed by taking example of two salesforce system.

https://www.sfdc-lightning.com/2019/01/salesforce-rest-api-integration.html
 
Big SteBig Ste
**  Don't click on farukh's link it seems to be some kind of browser virus !!