我目前正在使用 Google Portable Contacts API 将用户的 Google 联系人导入到网络应用程序中。
列出给定联系人的缩略图网址时,API 返回以下两种类型的网址之一:
虽然我可以从经过身份验证的用户访问这两种类型的网址Web 浏览器尝试将“私人”图片下载到我的服务器时返回 404 错误
(当我尝试将 OAuth 凭据添加到我的请求时,出现“格式错误”错误)。
我需要将这些“私人”图片下载到本地进行图像处理。
我有什么办法可以做到吗?
I'm currently using the Google Portable Contacts API to import my users' Google contacts to a web application.
When listing the thumbnail URLs for a given contact, the API returns one of the following two types of URLs:
Although I can access both of these types of URLs from the authenticated user's web browser, trying to download the 'private' pictures to my server returns a 404 error
(And a "malformed" error when I try to add OAuth credentials to my requests).
I need to download these 'private' pictures locally for image processing.
Is there any way I can do it?
发布评论