简体   繁体   中英

Is there a way to get a photo by photoId in Flickr.Net?

I have nearly all bits of my Flickr app worked out but I'm stumped by this. I can upload a photo using UploadPicture and this will return the created photo's photoId. But now I'd like to have the full Photo object for that id. For the life of me I can't figure out how to get that as there doesn't seem to be a GetPhoto method. The consequence is that after a picture upload I have to download all pictures to find the one uploaded. That's a waste of bandwidth and Flickr's resources.

You can do it.

From the Flickr API:

flickr.photos.getInfo

Get information about a photo. The calling user must have permission to view the photo.

After digging around the FlickerNet documentation , I found their implementation for it:

FlickrNet.Flickr.PhotosGetInfo

  • public PhotoInfo PhotosGetInfo(string photoId, string secret){...}
  • public PhotoInfo PhotosGetInfo(string photoId) {...}

Hope it helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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