I am looking for a sample code to authenticate Coordinate API using OAuth2 with an existing refresh token. I am looking for something similar in the thread Google Coordinate OAuth2 with Service Account. I have tried that code snippet but I faced some issue due to the dll conflict. And from the nuget library it seems like the Google.Apis.Authentication.OAuth2 is deprecated and we should use Google.Apis.Authinstead.
So If somebody can provide a sample code which will work with Google.Apis.Auth that would be great.
Please help.
I am able to find a solution by trying different combination. Adding the sample code and I think it will help somebody looking for a similar solution.
Hope this will help.
Thanks, MG