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
Abhiraj DattaAbhiraj Datta 

Can someone please provide a sample code which uses REST to call external service with Authentication? I need mainly the Authentication part or how to get the access token/refresh token.

Best Answer chosen by Abhiraj Datta
Om PrakashOm Prakash
Hi Abhiraj,
Have a look on this. I have answered this question with a sample Twitter integration.
https://developer.salesforce.com/forums/ForumsMain?id=9060G0000005WnGQAU

Authentication is depends on third party API, which authentication method they are providing, Basic or Oauth Flow.
Every application provider give us API doc which explain their flow of supported authentication.

All Answers

Om PrakashOm Prakash
Hi Abhiraj,
Have a look on this. I have answered this question with a sample Twitter integration.
https://developer.salesforce.com/forums/ForumsMain?id=9060G0000005WnGQAU

Authentication is depends on third party API, which authentication method they are providing, Basic or Oauth Flow.
Every application provider give us API doc which explain their flow of supported authentication.
This was selected as the best answer
Abhiraj DattaAbhiraj Datta
Hi Om Prakash,

This has been very helpful. Thank you so much.

Regards,
Abhiraj