谷歌Picasa网络API:获取私人相册 [英] Google Picasa Web Api: Get the private album
问题描述
我在Picasa网络有这么多张专辑,其中一些是私有的。现在,我只想检索使用谷歌的Picasa网页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://$c$c.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 = {访问令牌}
You have to append it to the url like &access_token={access token}
希望它帮助!
这篇关于谷歌Picasa网络API:获取私人相册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!