Google Picasa Web Api:获取私人相册 [英] Google Picasa Web Api: Get the private album

查看:30
本文介绍了Google Picasa Web Api:获取私人相册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 picasa 网站上有很多相册,其中一些是私人相册.现在,我只想使用 Google Picasa Web Api 检索那些私人相册.我已阅读文档并发现我需要提出经过身份验证的请求才能访问私人相册.

I had so many albums in my picasa web, some of them are private. Now, I want to retrieve only those private album using the Google Picasa Web Api. I have read the documentation and found out that I need to make an authenticated request in order to gain access to private album.

使用这个网址:

$url = 'http://picasaweb.google.com/data/feed/api/user/'.$username.'?kind=album&thumbsize=220c&access=private&max-results='.$list.'';

这会返回一个错误,表明我无权获取信息/数据.

This returns an error that I'm not authorized to get the info/data.

有关如何获得身份验证的任何帮助.有 PHP 类,但仅适用于 Zend Framework,我对此没有足够的了解.

Any help on how to get authenticated. There are PHP classes but for Zend Framework only which I don't have enough knowledge on it.

谢谢,

推荐答案

如果您已经使用 OAuth 获得了访问令牌:http://code.google.com/intl/sv-SE/apis/accounts/docs/OAuth2.html

If you have allready got an access token using the OAuth: http://code.google.com/intl/sv-SE/apis/accounts/docs/OAuth2.html

您必须将其附加到 url 中,例如 &access_token={access token}

You have to append it to the url like &access_token={access token}

希望有帮助!

这篇关于Google Picasa Web Api:获取私人相册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆