gpt4 book ai didi

c# - 如何使用 API 获取 Google Picasa 帐户的剩余存储空间?

转载 作者:太空宇宙 更新时间:2023-11-03 16:42:22 24 4
gpt4 key购买 nike

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

最佳答案

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

To obtain the amount of quota remaining, subtract the feed/gphoto:quotacurrent from the feed/gphoto:quotalimit value found in the following 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.

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

关于c# - 如何使用 API 获取 Google Picasa 帐户的剩余存储空间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7117559/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com