【问题标题】:How to get Google Contacts Image link Using Gdata python如何使用 Gdata python 获取 Google 联系人图片链接
【发布时间】:2013-02-03 23:45:27
【问题描述】:

如何使用 Gdata python 客户端获取 Google 联系人图片链接。

我试过gd_client.GetPhoto(contact_entry),它允许在本地下载联系人图像。

但我不想在本地保存图像。我需要直接的图片链接,以便我可以动态填充到我的网络应用程序中,例如<img src="google contact image link"></img>

非常感谢任何解决方案。

【问题讨论】:

    标签: python gdata gdata-api google-contacts-api


    【解决方案1】:

    使用较新的google-api-python-client 库,OAuth 2.0 身份验证,您可以从基本用户配置文件中获取照片 URI:

    Obtaining User Profile Information

    以下是在 AppEngine 中使用其中一些功能的示例:

    Google+ OAuth 2.0 AppEngine Sample

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-10
      • 2011-08-24
      相关资源
      最近更新 更多