Picasa API返回“远程服务器返回错误:(404)Not Found。”

问题描述 投票:3回答:2

我的代码:

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(照片);得到一个错误

远程服务器返回错误:(404)Not Found。

检查接受的参数:

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

c# gdata-api picasa
2个回答
2
投票

我有同样的问题。

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

对于Google 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);

0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.