So I have this code
My question is how do I configure the UserCredential if I\'m already authenticated via OAuth?
The current scenario is the c
We can create GoogleCredential
directly from the access token and use it instead of UserCredential
as well. I just think it might be helpful for someone. Here is a code snippet of GmailService
initialization:
GoogleCredential cred = GoogleCredential.FromAccessToken(accessToken);
GmailService service = new GmailService(new BaseClientService.Initializer {HttpClientInitializer = cred});