Your Daily Mark.Net


Treat others as you want to be treated

May 2006 - Posts

nice functionality of flickr
Flickr has an api library that can be used in a .net environment. the source files can be found on flickrdotnet.
More information can be found on flickr service.

and i made a sample application.
first add a referce to the flickrdotnet api in your project.
second, if you don't already have it obtain a unique key from flickr.
now your ready to do some cool stuff.

            Flickr f = new Flickr(<your key>);
             //if you are behind a proxy
            WebProxy wp = new WebProxy(<your proxy>, <portnumber>);
            wp.Credentials = new NetworkCredential(<username>, <password>, <domain>);
            f.Proxy = wp;

            Photos photos = f.PhotosSearch("logicacmg", TagMode.AllTags, null);

the object photos contains a collection of url's which are tagged logicacmg.

an other article about flickr and ajax can be found at codeproject.