Skip to content

Flickr.Net Example Code

Example code has been moved:

See the general Flickr.Net API page for the latest at any time.

{ 11 } Comments

  1. ruzz | September 15, 2005 at 9:29 am | Permalink

    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: http://flickr.com/photos/golush.

  2. Ben | September 18, 2005 at 1:02 am | Permalink

    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. Sam | September 18, 2005 at 7:22 pm | Permalink

    You’re right - I’ll correct the article above.

  4. Russ | September 24, 2005 at 11:53 am | Permalink

    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.

  5. jeremiah | October 4, 2005 at 2:51 am | Permalink

    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.

  6. jeremiah | October 4, 2005 at 6:42 pm | Permalink

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

  7. jeremiah | October 4, 2005 at 6:42 pm | Permalink

    my mistake. cached. full apologies all around.

  8. Arun | October 21, 2005 at 12:49 pm | Permalink

    You are correct. it needs more explanation.

  9. dwfake | October 24, 2005 at 2:29 am | Permalink

    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 http://www.aisto.com/roeder/dotnet/ - and of course the Flickr doc itself summarizes all the caps nicely - http://www.flickr.com/services/api/

  10. Sam | November 4, 2005 at 3:43 pm | Permalink

    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.

  11. Sam | November 4, 2005 at 4:49 pm | Permalink

    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).