无法使用Google People API更新照片 [英] Cannot update photos with Google People API

查看:159
本文介绍了无法使用Google People API更新照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

以下是使用People API更新联系人的wiki。该更新适用于像'emailAddresses'这样的字段。但'coverPhotos'或'photos'没有列为'updatePersonFields'的有效值,如果我尝试更新它们,我会得到400的返回代码。



该API支持的联系人?或者是否有任何其他API可以执行此项工作?现在您无法更新照片,将会有更新照片的支持在将来。目前,您需要使用旧的通讯录API来更新照片< a>。



封面照片仅支持个人资料(这是G +中的大背景图片),因此无法在封面上设置封面照片联系。


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?

解决方案

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.

这篇关于无法使用Google People API更新照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆