我正在尝试从运行 Win Phone 7.1的http://flickrnet.codeplex.comPhotosSearch()
获取示例代码,但该方法出现错误。我FlickrNet
从NuGet
. 我错过了什么吗?错误如下。
Flickr flickr = new Flickr("6317d8e0db3a555288202fe04b4f4972");
PhotoSearchOptions options = new PhotoSearchOptions();
options.BoundaryBox = new BoundaryBox(-1.7, 54.9, -1.4, 55.2); // Roughly Newcastle upon Type, England
PhotoCollection photos = flickr.PhotosSearch(options);
foreach(Photo photo in photos)
{
Console.WriteLine(String.Format("Photo \"{0}\" is at {1},{2}", photo.Title, photo.Latitude, photo.Longitude));
}