Cannot update photos with Google People API

巧了我就是萌 提交于 2019-12-22 08:11:54

问题


https://developers.google.com/people/api/rest/v1/people/updateContact

Here's the wiki on update contact using People API. The update works for fields like 'emailAddresses'. But 'coverPhotos' or 'photos' are not listed as valid value for 'updatePersonFields' and I get return code 400 if I try to update them.

Is changing photos of a contact supported by this API? Or is there any other API that does this job?


回答1:


Currently you cannot update photos, there will be support for updating photos coming in the future. For now you'll need to use the old Contacts API to update photos.

The cover photo is only supported for profiles (it's the big background image in G+), so there isn't any way to set a cover photo on a contact.




回答2:


Since Mid July 2019 it is FINALLY possible to update the contact photo with the people api: https://developers.google.com/people/api/rest/v1/people/updateContactPhoto



来源:https://stackoverflow.com/questions/45271409/cannot-update-photos-with-google-people-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!