Google+ REST API更改个人资料照片 [英] Google+ REST API Change Profile Photo

查看:94
本文介绍了Google+ REST API更改个人资料照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从昨天开始,我一直在寻找一种使用Google REST Apis更改主要" Google个人资料照片的方法.

Since yesterday I'm searching for a way to change the "main" Google profile photo with Google REST Apis.

如今,我们的应用程序可以使用Google Admin API进行交互并更改用户照片( https://developers.google.com/admin-sdk/directory/v1/reference/users/photos/update ),但如

Nowadays, our application can interact and change the User photo with Google Admin API (https://developers.google.com/admin-sdk/directory/v1/reference/users/photos/update) but as described in https://developers.google.com/admin-sdk/directory/v1/guides/manage-users#update_photo, in this version of the API, a photo is the user's latest Gmail Chat profile photo, which is different from the Google+ profile photo. If changed, Google+ profile photo override all other photos in Google products.

是否可以通过Google的REST API或其他任何覆盖所有其他产品资料照片的Google产品来更改Google+个人资料照片的模糊方法?

Is there any obscure way to change Google+ Profile Photo with Google's REST APIs or any other Google product that override all other products profiles photos?

谢谢.

推荐答案

还有另外两个用于管理照片的API:People API和Contacts API.如此处所示(无法使用Google People API更新照片)只有Contacts API可以更新联系人的照片.

There are other two APIs to manage photos: People API and Contacts API. As can be seen here (Cannot update photos with Google People API) only Contacts API can update a contact's photo.

今天,我与Google支持人员进行了交谈,他们告诉我们,覆盖所有其他产品的唯一方法是使用Contacts API,因为它在用户视图中是本地的".

Today I talked with Google Support and they told that the only way to override all other products is using Contacts API, as it's "local" to the user view.

在我的特定情况下,我不能走这种方式,因为有成千上万的帐户要输入(模拟),仅用于修改一张联系人照片.

In my particular case I cannot go this way because there are thousands of accounts to enter (impersonate) just to modify one only contact photo.

因此,总而言之,目前没有这样的API(或其他晦涩的方式).

So in conclusion there's no such API (or another obscure way) at this moment.

这篇关于Google+ REST API更改个人资料照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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