【问题标题】:Flickr get latest photos ASP using APIFlickr 使用 API 获取最新照片 ASP
【发布时间】:2012-03-28 22:03:56
【问题描述】:

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

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

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

谢谢

【问题讨论】:

    标签: asp.net flickr


    【解决方案1】:

    是的。您已改为使用 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
    

    【讨论】:

      猜你喜欢
      • 2019-07-18
      • 2011-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-16
      • 2011-03-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多