2

如何使用 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);
4

1 回答 1

0

这是两年前的问题,但对于任何仍在寻找的人来说,答案就在这里:

要获得剩余配额量,请从以下 Feed 中的 feed/gphoto:quotalimit 值中减去 feed/gphoto:quotacurrent: 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.

取自: https ://developers.google.com/picasa-web/faq#quota

于 2013-09-18T05:45:41.160 回答