Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google api 如何解码谷歌联系人v3照片名_Google Api_Google Contacts Api_Google Playground_Google Content Api - Fatal编程技术网

Google api 如何解码谷歌联系人v3照片名

Google api 如何解码谷歌联系人v3照片名,google-api,google-contacts-api,google-playground,google-content-api,Google Api,Google Contacts Api,Google Playground,Google Content Api,如何使用扩展名解码此图像名称 <link rel="http://schemas.google.com/contacts/2008/rel#photo" type="image/*" href="https://www.google.com/m8/feeds/photos/media/xxx@test.com/2d4aaf09b20bb7"/> <link rel="self" type="application/atom+xml" href="https://www.go

如何使用扩展名解码此图像名称

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

您将收到HTTP 401错误,这意味着您无权访问该映像


您是直接使用浏览器还是API客户端访问图像url?您需要提供正确的OAuth令牌才能访问图像。

如果我正确理解了问题,您无法获取URL并将其粘贴到浏览器中。您必须发送一个授权GET请求,如Google Contact API指南中所述

要检索联系人的照片,请向联系人的照片链接URL发送授权GET请求


因此,基本上,您将使用与接收联系人详细信息相同的令牌。我假设您使用的是GData联系人API。

解码是什么意思?这是一个URL,您可以在其中显示/下载图像。@David是的,我知道这是一个URL!但是它以编码形式给出的名称!2D4AAF09B20BB7没有文件名。从浏览器访问图像不需要名称。只需访问url即可下载图像,无需解码任何内容。@David是的,我尝试了很多次访问此urlhttps://www.google.com/m8/feeds/contacts/xxx@test.com/full/2d4aaf09b20bb7但是它已经坏了。你应该解释一下你所说的坏是什么意思。错误是什么?