Flickr.Net Example Code

Example code has been moved:

* [Examples – Part 1](/flickr/flickr-api/examples-part-1)
* [Examples – Part 2](/flickr/flickr-api/examples-part-2)

See the general [Flickr.Net API page](/flickr/flickr-api) for the latest at any time.

11 Replies to “Flickr.Net Example Code”

  1. okay. i’m in :)

    it wasn’t immediately obvious to me the flow of auth requirements, and after reading this and reading flickr’s docs and monkeying for a while I’ve worked it out.

    my suggestion would be to further clarify the process. Primarily i would explain the frob is only required on requests for a token.

    additional thoughts, if you really want to hear them? I would love to see some sort of object model for it all. I know i can browse the objects in VS but i find them sort of.. counter intuitive because they are modelled after the flickr api. For example, who would guess when i call PhotosGetContactsPhotos that it needs to be returned to a Photo Object, and that the list is buried inside as a PhotoCollection. I would have guessed.. a Contacts object.

    I commend you for all your work and I know from personal experience that docs and examples are the least important to the developer, but most important to getting a library widely used. Afterall, I’m using your library to save myself time and research. :)

    to put a cherry on this swirling sundae of a comment, I’m fantastically busy but if i can help you in any way feel free to ask. I will track your email down through this site and email you so you can get back to me–i’m so reluctant to post actual live emails on the web anymore..

    or you can contact me through flickr:

  2. Did I get the wrong source package or something? This code is wrong – it should be string token = f.AuthGetToken(frob).Token, since AuthGetToken returns an Auth, not a string.

  3. Hello all,
    Thought you may be interested in my little project this is using the Flickr.Net API. It places geotagged photos onto a google map. Check it out here.

  4. you still need to document this more. there are people like me out here who want to learn how to use this API but are lost. BE MORE VERBOSE for crying out loud. terse examples don’t help anyone except those who already know what they’re doing.

    for example: the PhotosSearch method seems to return nothing? what frakking good is it to search then make the results unreachable? does it return something? state that in your fucking documentation.

    another example: how do i turn what I finally discovered PhotosSearch returns (Photos) into Photo[] so I can walk through it?? Photos doesn’t implement IEnumerate so I can’t walk it. Also there isn’t a method called Photos.GetPhotoArray(), which would make perfect sense, there is a method called PhotoCollection (with no parameters, so its not really a function) which returns a PhotoCollection. Also the PhotoCollection collection also does not implement IEnumerable. WTF?

    Do you even care about how much your API implementation is used? I certainly do NOT want to use it in this state.

  5. thanks for deleting my comment. i see you’re able to accept criticism with open arms. good work.

  6. Thanks to all for this library – it has really come in useful over the past few months – and now that it is taking care of the new authentication requirements, it will be doubly so.

    For those who need a bit more documentation, I’d recommend compiling the assembly and then loading it into Reflector – and of course the Flickr doc itself summarizes all the caps nicely –

  7. All good points, thanks. I am working on some more indepth examples, along with releasing a new build of the source code. Keep tuned for more details.

  8. jeremiah:

    The PhotoCollection should be enumerable.

    Photos photos = flickr.PhotosSearch(blah blah blah);
    foreach(Photo photo in photos.PhotoCollection)
    // Do something with the photo.

    However, if the search returns no photos then PhotoCollection will be null (a ‘feature’ at the moment that I will try to remove at a later date).

Comments are closed.