您好我尝试使用picasa网络相册数据API将照片从Google照片下载到我的后端。
要使用此API下载照片,我必须知道 albumID 。
对于测试建议我制作了一个全新的Gmail帐户,并将照片上传到这个新帐户的Google照片并制作相册。
基于文档 https://developers.google.com/picasa-web/docs/3.0/developers_guide_protocol
我使用新帐户 userID 发送此请求: 获取https://picasaweb.google.com/data/feed/api/user/userID
问题是根本没有 albumID 。
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:gphoto='http://schemas.google.com/photos/2007'>
<id>https://picasaweb.google.com/data/feed/api/user/<userID></id>
<updated>1970-01-01T00:00:00.000Z</updated>
<category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#user'/>
<title type='text'><userID></title>
<subtitle type='text'/>
<icon>https://lh3.googleusercontent.com/-31_aw60BK4Y/AAAAAAAAAAA/AAAAAAAAAAA/6nUp0GOreV8/s64-c/<userID>.jpg</icon>
<link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/<userID>'/>
<link rel='alternate' type='text/html' href='https://picasaweb.google.com/<userID>'/>
<link rel='http://schemas.google.com/photos/2007#slideshow' type='application/x-shockwave-flash' href='https://photos.gstatic.com/media/slideshow.swf?host=picasaweb.google.com&RGB=0x000000&feed=https://picasaweb.google.com/data/feed/api/user/<userID>?alt%3Drss'/>
<link rel='self' type='application/atom+xml' href='https://picasaweb.google.com/data/feed/api/user/<userID>?start-index=1&max-results=1000'/>
<author>
<name><userID></name>
<uri>https://picasaweb.google.com/<userID></uri>
</author>
<generator version='1.00' uri='http://picasaweb.google.com/'>Picasaweb</generator>
<openSearch:totalResults>0</openSearch:totalResults>
<openSearch:startIndex>1</openSearch:startIndex>
<openSearch:itemsPerPage>1000</openSearch:itemsPerPage>
<gphoto:user><userID></gphoto:user>
<gphoto:nickname><userID></gphoto:nickname>
<gphoto:thumbnail>https://lh3.googleusercontent.com/-31_aw60BK4Y/AAAAAAAAAAA/AAAAAAAAAAA/6nUp0GOreV8/s64-c/<userID>.jpg</gphoto:thumbnail>
</feed>
我错过了什么地方?