Picasa API 返回“远程服务器返回错误:(404) 未找到。”

发布于 2024-07-26 01:01:33 字数 587 浏览 3 评论 0原文

我的代码:

foreach (PicasaEntry entryAlbuns in feedAlbuns.Entries)
{                
   AlbumAccessor ac = new AlbumAccessor(entryAlbuns);
   PhotoQuery photos = new PhotoQuery(PicasaQuery.CreatePicasaUri("admin@localhost", ac.AlbumTitle));
   PicasaFeed feedPhotos = service.Query(photos);
}

当调试器进入 PicasaFeed feedPhotos = service.Query(photos); 行时 得到一个错误

远程服务器返回错误: (404) 未找到。

检查接受的参数:

alt text

PS:出于安全原因,我将我的电子邮件帐户替换为 admin@localhost。

My Code:

foreach (PicasaEntry entryAlbuns in feedAlbuns.Entries)
{                
   AlbumAccessor ac = new AlbumAccessor(entryAlbuns);
   PhotoQuery photos = new PhotoQuery(PicasaQuery.CreatePicasaUri("admin@localhost", ac.AlbumTitle));
   PicasaFeed feedPhotos = service.Query(photos);
}

When debugger step in line PicasaFeed feedPhotos = service.Query(photos); get an error

The remote server returned an error:
(404) Not Found.

Check parameters accepted:

alt text

PS: Because of security reasons I replaced my email account to admin@localhost.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

孤独陪着我 2024-08-02 01:01:33

我有同样的问题。

对于谷歌API 1.2.2.0
使用AlbumAccessor.Name 而不是AlbumAccessor.AlbumTitle。
谷歌应该在文档中使这一点更加明显。

对于谷歌 APL 1.4.0.2
使用AlbumAccessor.Id 而不是AlbumAccessor.AlbumTitle。
谷歌应该在文档中使这一点更加明显。

示例代码:

AlbumAccessor ac = new AlbumAccessor(AlbumEntry);
PhotoQuery query = new PhotoQuery();
query.Uri = new Uri(PicasaQuery.CreatePicasaUri(_login,AlbumAccessor.Id));                                

photoFeed = picasaService.Query(query);

I had the same problem.

For Google API 1.2.2.0
Use the AlbumAccessor.Name instead of AlbumAccessor.AlbumTitle.
Google should make this more obvious in the documentation.

For Google APL 1.4.0.2
Use the AlbumAccessor.Id instead of AlbumAccessor.AlbumTitle.
Google should make this more obvious in the documentation.

Sample Code:

AlbumAccessor ac = new AlbumAccessor(AlbumEntry);
PhotoQuery query = new PhotoQuery();
query.Uri = new Uri(PicasaQuery.CreatePicasaUri(_login,AlbumAccessor.Id));                                

photoFeed = picasaService.Query(query);
万人眼中万个我 2024-08-02 01:01:33

检查..标题必须没有空格,如果您使用ac.name,您将获得专辑的好名称..希望能帮助一些人

Check .. the title must have no space, if you use ac.name you will get the good name of album .... wish that help some people

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文