如何使用API获取Google Picasa帐户的剩余存储空间?
我使用了这段代码,但没有看到任何bytesused标签
FeedQuery query = new FeedQuery();
PicasaService service = new PicasaService("xanaxzxzx");
// Set your credentials:
service.setUserCredentials(username, password);
// Create the query object:
query.Uri = new Uri(String.Format("https://picasaweb.google.com/data/feed/api/user/{0}", HttpUtility.UrlEncode(username)));
// Tell the service to query:
AtomFeed calFeed = service.Query(query);
答案 0 :(得分:0)
这是两年前的问题,但对于仍然找到的人来说,答案就在这里:
要获得剩余的配额,请减去 feed / gphoto:来自feed / gphoto的quotacurrent:找到quotalimit值 在以下Feed中: https://picasaweb.google.com/data/feed/api/user/username
The word default can be used in place of the username if you're using an authentication token.