获取所有照片从Picasa通过人 [英] Get all photos from Picasa by person

查看:169
本文介绍了获取所有照片从Picasa通过人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能得到的所有照片通过一个人的名字通过 Picasa网络相册数据API

Is it possible to get all photos by a persons name through the Picasa Web Albums Data API?

所有的例子我能找到,展示了如何通过ALBUMID得到的照片。

All examples I can find, shows how to get photos by an albumid.

推荐答案

通过设置默认意味着获取当前用户与code可以retrive在特定相册的用户照片

by setting "default" that mean retrieving current user with that code you can retrive the user photos in specific album

PhotoQuery query = new PhotoQuery(PicasaQuery.CreatePicasaUri("default", albumId));
        PicasaFeed feed = picasaService.Query(query);

        foreach (var entry in feed.Entries)
        {
            PhotoAccessor photoAccessor = new PhotoAccessor((PicasaEntry)entry);
            Photo photo = new Photo();

            photo.Title = photoAccessor.PhotoTitle;
            photo.Summary = photoAccessor.PhotoSummary;
            photo.MediaUri = entry.Content.AbsoluteUri;
            photo.Id = photoAccessor.Id;
            photo.AlbumId = photoAccessor.AlbumId;

            photos.Add(photo);
        }

这篇关于获取所有照片从Picasa通过人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆