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
theDreamertheDreamer 

Pass Parameters to REST API and read XML responses

I have Visual force page from where i want to click on a button

That button will call a 3rd Party REST API and will pass parameter to it including account name, oauth consumer key and consumer secret.

I want to do reverse of this https://developer.salesforce.com/page/Using_OAuth_to_Authorize_External_Applications

Any help urls would be appreciated

pconpcon
The url you provided won't really help you much because you are talking from going OUT from Salesforce and that article is for going IN.  I would take a look over how to do Callouts [1] [2] from Salesforce.  You will need to know how to authenticate with your REST API and how that authentication works.  I would recommend learning how to do this via cURL and then adapt that into a Salesforce Apex code.

[1] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts.htm
[2] https://developer.salesforce.com/page/Apex_Web_Services_and_Callouts