connect to flickr api