【问题标题】:how to get proper (full) image path with extension from google api result如何从谷歌 api 结果中获取带有扩展名的正确(完整)图像路径
【发布时间】:2014-08-19 05:09:12
【问题描述】:

我正在使用 google oauth 2.0 Playground API,它给了 ma 联系人的结果,但问题是它也没有给出带有扩展名的完整图像名称。

我得到以下结果

    <link rel="http://schemas.google.com/contacts/2008/rel#photo" type="image/*" href="https://www.google.com/m8/feeds/photos/media/xxxx@test.com/2d4aaf09b20bb7"/>
  <link rel="self" type="application/atom+xml" href="https://www.google.com/m8/feeds/contacts/xxxx@test.com/full/2d4aaf09b20bb7"/>
  <link rel="edit" type="application/atom+xml" href="https://www.google.com/m8/feeds/contacts/xxxx@test.com/full/2d4aaf09b20bb7"/>

我必须做什么才能获得带有扩展名的图像 src?

【问题讨论】:

    标签: jquery google-oauth google-contacts-api google-geocoding-api google-playground


    【解决方案1】:

    没有“文件名”或“扩展名”。当您向 URL 发送一个经过身份验证的请求时,您将收到一个 HTTP 响应,其标头中包含一个内容类型,说明它是哪种格式以及照片字节。

    【讨论】:

      猜你喜欢
      • 2013-10-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-27
      • 1970-01-01
      • 2017-01-26
      • 2014-08-25
      • 1970-01-01
      相关资源
      最近更新 更多