Infinite Loop Error.
I have been spending way too much time going in circles in Googles really terrible API documentation regarding implementation of their cloud services in a desktop application.
First major problem, it seems that I must use Oauth2 somehow in order to obtain additional client credentials (which I must update/refresh using a refresh token as this changes as well) -- since apparently the API credentials just aren't enough to do full on communication.
https://cloud.google.com/dns/api/authorization
Could someone give an example using C# .NET in a WinForms application that uses rest or the Google .NET API library to establish the required OAuth2 token data/etc which will then later be used to access all of these API's here.
https://cloud.google.com/dns/api/v1/managedZones
And please ---- no gcloud.exe stuff. Not practical to expect clients to download that massive and over complicated installer just to get the tool. :)
found some time to create a small sample application. You can find the code on github .
You said you don't want to use the client_secrets.json. The only quick solution i found was to provide the necessary stuff via memory stream - there may be better ways.
Most of the authentication and Cloud DNS client is done in these lines
The example lacks any good coding style (I could use a Json lib, and i could wrap the writer in using) but the sample should work. I hope this helps in getting you on the right track.
Edit: I deleted the client id and secret used in the sample, so you need to replace those with your own to make the code work.