+ Start a Discussion
bharath kumar 52bharath kumar 52 

How to get a Oauth token dynamically without any user interaction?

Hi All,

I am planning to integrate salesforce with a google api. But, the challenge here is that i have a lot of users and  each user has a different set of data.
In order to make sure that the user data flows from google to salesforce i used their api and REST callouts . But, the catch here is that i am currently hardcoding the token which i get from oauthplayground. But in realtime scenario when i click on a button i need the latest dataa to be shown from google to salesforce can someonen please help me on how i can get the token of each user dynamically and notjust hardcoding a single token?