people.searchContacts 的最大结果数是多少?
What is the maximum number of results for people.searchContacts?
PeopleAPI
参考说明 people.searchContacts
的最大数量是多少?
people.searchContacts
中有一个参数指定了PageSize,这个参数的可能范围是0-100(如果超出这个范围,API会return报错代码 400).
事实上,在我的环境中 returned 的最大联系人数量是 10。
当我调用 API 时,我是从 PeopleAPI 引用中调用的。
我只有名字从“test001”到“test692”的联系人。
我拨打了以下电话。
pageSize=100
query=test
readMask=names
事实上,搜索是成功的,因为 returned 了 10 个结果。
实际的 API 响应如下。
很明显,对象PERSON只有10.
{
"results": [
{
"person": {
"resourceName": "people/c8168479585467794596",
"etag": "%EgUBAj03LhoBAiIMNnpSRkhHZGx0MWc9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "715c44e78ed684a4"
}
},
"displayName": "test344",
"givenName": "test344",
"displayNameLastFirst": "test344",
"unstructuredName": "test344"
}
]
}
},
{
"person": {
"resourceName": "people/c3167515375063584231",
"etag": "%EgUBAj03LhoBAiIMYXNYSDFwK2F5M2s9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "2bf546738f40cde7"
}
},
"displayName": "test475",
"givenName": "test475",
"displayNameLastFirst": "test475",
"unstructuredName": "test475"
}
]
}
},
{
"person": {
"resourceName": "people/c3282072175076995161",
"etag": "%EgUBAj03LhoBAiIMNnpSRkhHZGx0MWc9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "2d8c43410aa87059"
}
},
"displayName": "test324",
"givenName": "test324",
"displayNameLastFirst": "test324",
"unstructuredName": "test324"
}
]
}
},
{
"person": {
"resourceName": "people/c93297420873589595",
"etag": "%EgUBAj03LhoBAiIMNnpSRkhHZGx0MWc9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "14b75828da1635b"
}
},
"displayName": "test375",
"givenName": "test375",
"displayNameLastFirst": "test375",
"unstructuredName": "test375"
}
]
}
},
{
"person": {
"resourceName": "people/c7551199169689611221",
"etag": "%EgUBAj03LhoBAiIMYXNYSDFwK2F5M2s9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "68cb3fa30992ebd5"
}
},
"displayName": "test410",
"givenName": "test410",
"displayNameLastFirst": "test410",
"unstructuredName": "test410"
}
]
}
},
{
"person": {
"resourceName": "people/c1565155306977622025",
"etag": "%EgUBAj03LhoBAiIMYXNYSDFwK2F5M2s9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "15b88c758ab7f809"
}
},
"displayName": "test502",
"givenName": "test502",
"displayNameLastFirst": "test502",
"unstructuredName": "test502"
}
]
}
},
{
"person": {
"resourceName": "people/c5338499009621013269",
"etag": "%EgUBAj03LhoBAiIMOG5lYXFOY2dSMEk9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "4a1628908e3c3315"
}
},
"displayName": "test045",
"givenName": "test045",
"displayNameLastFirst": "test045",
"unstructuredName": "test045"
}
]
}
},
{
"person": {
"resourceName": "people/c1634993899755826693",
"etag": "%EgUBAj03LhoBAiIMeFhRTGVVTUpwV1U9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "16b0aa4a0ce06e05"
}
},
"displayName": "test682",
"givenName": "test682",
"displayNameLastFirst": "test682",
"unstructuredName": "test682"
}
]
}
},
{
"person": {
"resourceName": "people/c2147830404560755472",
"etag": "%EgUBAj03LhoBAiIMYXNYSDFwK2F5M2s9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "1dcea05f8da09b10"
}
},
"displayName": "test412",
"givenName": "test412",
"displayNameLastFirst": "test412",
"unstructuredName": "test412"
}
]
}
},
{
"person": {
"resourceName": "people/c1471134701871216797",
"etag": "%EgUBAj03LhoBAiIMNnpSRkhHZGx0MWc9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "146a853789c8b89d"
}
},
"displayName": "test257",
"givenName": "test257",
"displayNameLastFirst": "test257",
"unstructuredName": "test257"
}
]
}
}
]
}
要搜索的群组如下
{
"resourceName": "contactGroups/70239db70d7a542c",
"etag": "oa89KnGjASc=",
"metadata": {
"updateTime": "2021-04-13T03:38:14.374Z"
},
"groupType": "USER_CONTACT_GROUP",
"name": "インポート: 4/13",
"formattedName": "インポート: 4/13",
"memberCount": 691
}
我可以重现您的问题,并且可以确认返回结果的数量上限为 10
这似乎是一个错误。
我冒昧地在 Google Issue Tracker 上为您归档了。
我建议您给它“加注星标”以提高知名度。
PeopleAPI
参考说明 people.searchContacts
的最大数量是多少?
people.searchContacts
中有一个参数指定了PageSize,这个参数的可能范围是0-100(如果超出这个范围,API会return报错代码 400).
事实上,在我的环境中 returned 的最大联系人数量是 10。
当我调用 API 时,我是从 PeopleAPI 引用中调用的。 我只有名字从“test001”到“test692”的联系人。
我拨打了以下电话。
pageSize=100
query=test
readMask=names
事实上,搜索是成功的,因为 returned 了 10 个结果。 实际的 API 响应如下。 很明显,对象PERSON只有10.
{
"results": [
{
"person": {
"resourceName": "people/c8168479585467794596",
"etag": "%EgUBAj03LhoBAiIMNnpSRkhHZGx0MWc9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "715c44e78ed684a4"
}
},
"displayName": "test344",
"givenName": "test344",
"displayNameLastFirst": "test344",
"unstructuredName": "test344"
}
]
}
},
{
"person": {
"resourceName": "people/c3167515375063584231",
"etag": "%EgUBAj03LhoBAiIMYXNYSDFwK2F5M2s9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "2bf546738f40cde7"
}
},
"displayName": "test475",
"givenName": "test475",
"displayNameLastFirst": "test475",
"unstructuredName": "test475"
}
]
}
},
{
"person": {
"resourceName": "people/c3282072175076995161",
"etag": "%EgUBAj03LhoBAiIMNnpSRkhHZGx0MWc9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "2d8c43410aa87059"
}
},
"displayName": "test324",
"givenName": "test324",
"displayNameLastFirst": "test324",
"unstructuredName": "test324"
}
]
}
},
{
"person": {
"resourceName": "people/c93297420873589595",
"etag": "%EgUBAj03LhoBAiIMNnpSRkhHZGx0MWc9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "14b75828da1635b"
}
},
"displayName": "test375",
"givenName": "test375",
"displayNameLastFirst": "test375",
"unstructuredName": "test375"
}
]
}
},
{
"person": {
"resourceName": "people/c7551199169689611221",
"etag": "%EgUBAj03LhoBAiIMYXNYSDFwK2F5M2s9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "68cb3fa30992ebd5"
}
},
"displayName": "test410",
"givenName": "test410",
"displayNameLastFirst": "test410",
"unstructuredName": "test410"
}
]
}
},
{
"person": {
"resourceName": "people/c1565155306977622025",
"etag": "%EgUBAj03LhoBAiIMYXNYSDFwK2F5M2s9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "15b88c758ab7f809"
}
},
"displayName": "test502",
"givenName": "test502",
"displayNameLastFirst": "test502",
"unstructuredName": "test502"
}
]
}
},
{
"person": {
"resourceName": "people/c5338499009621013269",
"etag": "%EgUBAj03LhoBAiIMOG5lYXFOY2dSMEk9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "4a1628908e3c3315"
}
},
"displayName": "test045",
"givenName": "test045",
"displayNameLastFirst": "test045",
"unstructuredName": "test045"
}
]
}
},
{
"person": {
"resourceName": "people/c1634993899755826693",
"etag": "%EgUBAj03LhoBAiIMeFhRTGVVTUpwV1U9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "16b0aa4a0ce06e05"
}
},
"displayName": "test682",
"givenName": "test682",
"displayNameLastFirst": "test682",
"unstructuredName": "test682"
}
]
}
},
{
"person": {
"resourceName": "people/c2147830404560755472",
"etag": "%EgUBAj03LhoBAiIMYXNYSDFwK2F5M2s9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "1dcea05f8da09b10"
}
},
"displayName": "test412",
"givenName": "test412",
"displayNameLastFirst": "test412",
"unstructuredName": "test412"
}
]
}
},
{
"person": {
"resourceName": "people/c1471134701871216797",
"etag": "%EgUBAj03LhoBAiIMNnpSRkhHZGx0MWc9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "CONTACT",
"id": "146a853789c8b89d"
}
},
"displayName": "test257",
"givenName": "test257",
"displayNameLastFirst": "test257",
"unstructuredName": "test257"
}
]
}
}
]
}
要搜索的群组如下
{
"resourceName": "contactGroups/70239db70d7a542c",
"etag": "oa89KnGjASc=",
"metadata": {
"updateTime": "2021-04-13T03:38:14.374Z"
},
"groupType": "USER_CONTACT_GROUP",
"name": "インポート: 4/13",
"formattedName": "インポート: 4/13",
"memberCount": 691
}
我可以重现您的问题,并且可以确认返回结果的数量上限为 10
这似乎是一个错误。
我冒昧地在 Google Issue Tracker 上为您归档了。
我建议您给它“加注星标”以提高知名度。