Flickr使用API​​获取最新的照片ASP

时间:2011-02-15 15:22:07

标签: asp.net flickr

嘿,我目前正在使用以下代码

Dim flickr As New Flickr("apikey")

Dim test As New Photos
test = flickr.PhotosGetRecent(5, 5)

For Each [Photo] As FlickrNet.Photo In test.PhotoCollection
    Response.Write([Photo].ThumbnailUrl)
    Response.Write("<br>")
Next

但这只返回上传到一般电影中的最新照片,我只想要我自己的照片。这可能吗?

由于

1 个答案:

答案 0 :(得分:0)

是。您已经使用了PhotosSearch,并按DateUploaded排序。

Dim flickr As New Flickr("apikey")

Dim options As New PhotoSearchOptions()
options.UserId = "myuserid@n01"
o.SortOrder = PhotoSearchSortOrder.DatePostedDescending
o.PerPage = 5
o.Page = 1

Dim test As Photos = flickr.PhotosSearch(options)

... etc