你如何从 Person 到 ContactEntry
How do you get from Person to ContactEntry
据我所知,无法(还)更新链接到人物(人物 API)的照片,建议使用联系人 API 来实现此目的。
但是如何从 Person 到 ContactEntry?
我试图将 Person 的资源名称连接到“https://www.google.com/m8/feeds/contacts/default/full/”,但出现 "ResourceNotFoundException" 错误。
当你找到一个有联系人的人时,这个人看起来像:
{
metadata: {
sources: [
{
type: PROFILE,
id: "12345678"
},
{
type: CONTACT,
id: "abc123"
}
]
}
}
您应该找到类型为 CONTACT
的 metadata.sources
字段,然后您可以在联系人 API 中使用该联系人的 id
。 GET https://www.google.com/m8/feeds/contacts/default/full/<id>
应该 return 联系人数据。
据我所知,无法(还)更新链接到人物(人物 API)的照片,建议使用联系人 API 来实现此目的。
但是如何从 Person 到 ContactEntry?
我试图将 Person 的资源名称连接到“https://www.google.com/m8/feeds/contacts/default/full/”,但出现 "ResourceNotFoundException" 错误。
当你找到一个有联系人的人时,这个人看起来像:
{
metadata: {
sources: [
{
type: PROFILE,
id: "12345678"
},
{
type: CONTACT,
id: "abc123"
}
]
}
}
您应该找到类型为 CONTACT
的 metadata.sources
字段,然后您可以在联系人 API 中使用该联系人的 id
。 GET https://www.google.com/m8/feeds/contacts/default/full/<id>
应该 return 联系人数据。