谷歌联系人api没有获得所有联系人

时间:2022-08-28 15:26:24

I have a vb.net application where it retrieves all my contacts. In stead of doing that for some odd reason the application add my mostly used contacts. Any help is appreciated.

我有一个vb.net应用程序,它检索我的所有联系人。应用程序添加了我最常用的联系人,而不是出于某种奇怪的原因。任何帮助表示赞赏。

my code:

我的代码:

Dim authSubUrl = AuthSubUtil.getRequestUrl("http://www.example.com/Welcome.asp", "https://www.google.com/m8/feeds/contacts/default/full", False, True)

tmpEMailAddress = frmEmp.eMailAddress

'Dim tmpWREmailAddress As String = Mid(frmEmp.eMailAddress, 1, InStr(frmEmp.eMailAddress, "@") - 1) & "@roguevalleydoor.com"
tmpEMailAddress = Mid(frmEmp.eMailAddress, 1, InStr(frmEmp.eMailAddress, "@") - 1) & "@roguevalleydoor.com"

Dim rs As New RequestSettings("GMClient", tmpEMailAddress, frmEmp.NetPW)

' AutoPaging results in automatic paging in order to retrieve all contacts
rs.AutoPaging = True
Dim cr As New ContactsRequest(rs)

Dim f As Feed(Of Contact) = cr.GetContacts

ContactsListView.Items.Clear()

If f.Entries.Any = True Then
   Dim lvRow As New ListViewItem

   For Each ea As Contact In f.Entries

       For Each email As EMail In ea.Emails
           If (InStr(email.Address, "@") <> 0) AndAlso (ea.Title.Trim <> "") Then

              lvRow = ContactsListView.Items.Add(ea.Title)
              lvRow.SubItems.Add(email.Address)
           End If
       Next
   Next
End If

1 个解决方案

#1


4  

Note: The feed may not contain all of the user's contacts, because there's a default limit on the number of results returned. For more information, see the max-results query parameter in Retrieving contacts using query parameters.

注意:Feed可能不包含所有用户的联系人,因为返回的结果数量有默认限制。有关更多信息,请参阅使用查询参数检索联系人中的max-results查询参数。

https://developers.google.com/google-apps/contacts/v3/#retrieving_all_contacts

https://developers.google.com/google-apps/contacts/v3/#retrieving_all_contacts

#1


4  

Note: The feed may not contain all of the user's contacts, because there's a default limit on the number of results returned. For more information, see the max-results query parameter in Retrieving contacts using query parameters.

注意:Feed可能不包含所有用户的联系人,因为返回的结果数量有默认限制。有关更多信息,请参阅使用查询参数检索联系人中的max-results查询参数。

https://developers.google.com/google-apps/contacts/v3/#retrieving_all_contacts

https://developers.google.com/google-apps/contacts/v3/#retrieving_all_contacts