Get Google Domain Shared Contacts or Google Private Contacts in VB.NET

This is how to retrieve Google Domain Shared Contacts and Private Contacts.


Dim _ContactsService As ContactsService = New ContactsService([AppName])
_ContactsService.setUserCredentials(p_Username, p_Password)
Dim query As ContactsQuery = New ContactsQuery(ContactsQuery.CreateContactsUri([PARAMETER]))
Dim feed As ContactsFeed = _ContactsService.Query(query)
Dim listOfContacts As List(Of ContactEntry) = New List(Of ContactEntry)
For Each c As ContactEntry In feed.Entries

For private contacts method: [PARAMETER] = [USER_ID]

For domain shared contacts method: [PARAMETER] = [DOMAIN]