简体   繁体   English

适用于Android的Picasa网络相册

[英]Picasa Web Album for android

I am trying to use Picasa Web Album API from android. 我正在尝试从Android使用Picasa网络相册API。 I am able to get the albums from a user from AlbumEntry object. 我可以从AlbumEntry对象的用户那里获得相册。 From this object, i called getID to get the id of the album but it gives me the url instead : https://picasaweb.google.com/data/entry/user/ {userid}/albumid/{album id}, why does it print a url and not the album id. 从这个对象中,我打电话给getID来获取相册的ID,但是它却给了我URL: https ://picasaweb.google.com/data/entry/user/ {userid} / albumid / {album id},为什么是否打印网址而不是相册ID。 If I pass this to UserFeed and try to retrieve the photos, I have error. 如果我将此传递给UserFeed并尝试检索照片,则出现错误。

When I used this url : https://picasaweb.google.com/data/feed/api/user/ {user id}/albumid/{album id}?kind=photo, I have no error. 当我使用以下网址: https : //picasaweb.google.com/data/feed/api/user/ {用户ID} / albumid / {相册ID}?kind = photo时,我没有错误。

Can somebody they me why getID retrieve the url instead of the album id. 有人可以帮我吗,为什么getID检索网址而不是相册ID。

I was having the same problem today. 我今天有同样的问题。 I found out that to get only AlbumID, you have to to use getGphotoId() method of AlbumEntry Object. 我发现要仅获取AlbumID,必须使用AlbumEntry Object的getGphotoId()方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM