Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am using flickrnet API and I want to make photo search. I need to use my web browser to display search. First of all, I am thinking to make it with tagmode option and later I will change it to text, but I found difficulty to generate url of this, maybe you could tell me what I am doing wrong and how to generate that url, is it possible to do what I want with PhotoSearchOption? My code try:
C#
private void button4_Click(object sender, EventArgs e)
        {
            var flickr = new Flickr("api key", "secured");

            // Get 100 most recent pictures with the tag "Cold"
            PhotoSearchOptions options = new PhotoSearchOptions();
            options.TagMode = TagMode.AnyTag;
            options.Tags = "Cold";

            PhotoCollection photos = flickr.PhotosSearch(options);

            webBrowser1.ScriptErrorsSuppressed = true;
            webBrowser1.Navigate(options.ToString());// I know there should be not option, but option's url


        }
Posted
Comments
Sinisa Hajnal 7-Jan-16 9:24am    
What does flickr API say? Why don't you copy the link from search you try on the site and just replace relevant parts?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900