繁体   English   中英

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

[英]Picasa API returns “The remote server returned an error: (404) Not Found.”

我的代码:

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。

我有同样的问题。

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM