I try use new google contacts API. My task is simple - retrieve contacts from static(my personal) domain account. I register my application at APIs Console and get ClientId,ClientSecret So I try authenticate my application through .net(google SDK)
RequestSettings settings = new RequestSettings(appName,login,password);
ContactsRequest cr = new ContactsRequest(settings);
Feed<Contact> contacts = cr.GetContacts();
foreach (Contact entry in contacts.Entries)
{
....
}
This code works well, but Google said that we should use OAuth2 authentication at production scenario.
I try different parameters at RequestSettings
but at other variant I get 401(access denied).
So my question what's the right way to auth through google API v3 at installed desctop application without using other accounts credentials.