简体   繁体   English

是否可以像在旧的 G+/Picasa API 上一样单独使用 email 获取个人公开个人资料照片?

[英]Is it possible to get a person public profile photo using email alone, just like on the old G+/Picasa API?

Background背景

In the past, and in the near future, it's possible, given a person's email, to get the profile photo, as shown here:在过去和不久的将来,给定一个人的 email,可以获得个人资料照片,如下所示:

Retrieving a user's public google/gmail picture检索用户的公开 google/gmail 图片

It is even possible without any login to the network of G+, as shown here .甚至可以不登录 G+ 网络,如图所示

The problem问题

As the docs say ( here ), this API will soon be deprecated and so it won't be possible to use it anymore:正如文档所说(此处),此 API 将很快被弃用,因此无法再使用它:

The Picasa Web Albums Data API will be turned off and all associated OAuth scopes will be disabled. Picasa Web 相册数据 API 将被关闭,所有关联的 OAuth 范围将被禁用。 Read the deprecation notice.阅读弃用通知。

Key dates:关键日期:

  • January 2019 Unless you have requested an extension, all calls to the Picasa Web Albums Data API will begin to fail from this date onwards. 2019 年 1 月除非您请求延期,否则从该日期起,对 Picasa Web 相册数据 API 的所有调用都将开始失败。
  • March 2019 The Picasa Web Albums API will be turned off. 2019 年 3 月Picasa Web 相册 API 将被关闭。 All calls to this API will fail from this date onwards and you cannot request any further extensions.从此日期起,对 API 的所有呼叫都将失败,您无法请求任何进一步的延期。

What I've found我发现了什么

Looking at the new API ( migration guide and normal docs ), I don't see any similar approach to just reach a website URL and get the image of the profile.查看新的 API ( 迁移指南普通文档),我没有看到任何类似的方法来访问网站 URL 并获取配置文件的图像。 All they talk about is the photos API of Google Photos app.他们谈论的只是谷歌照片应用程序的照片 API。

What I do know is that there is the "People" API for a similar thing, but as I remember it requires a login first.我所知道的是,有类似的东西有“人”API,但我记得它需要先登录。

The question问题

Is there an alternative API to what is currently available?目前可用的 API 是否有替代品?

Is there a way using one of Google's APIs to get the public profile photo of a person's email address, even without login?有没有办法使用谷歌的 API 来获取一个人的 email 地址的公开个人资料照片,即使没有登录? Or maybe login is now required no matter what?或者也许现在无论如何都需要登录?

A possible solution I found so far is about using people API with your own key, But you still need to get the account id for the particular email address到目前为止我发现的一个可能的解决方案是使用人 API和您自己的密钥,但是您仍然需要获取特定 email 地址的帐户 ID

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM