/// <summary>
        /// Get the tag list for a given photo.
        /// </summary>
        /// <param name="photoId">The id of the photo to return tags for.</param>
        /// <returns>An instance of the <see cref="PhotoInfo"/> class containing only the <see cref="PhotoInfo.Tags"/> property.</returns>
        public Collection <PhotoInfoTag> TagsGetListPhoto(string photoId)
        {
            var parameters = new Dictionary <string, string>();

            parameters.Add("method", "flickr.tags.getListPhoto");
            parameters.Add("api_key", apiKey);
            parameters.Add("photo_id", photoId);

            PhotoInfo info = GetResponseCache <PhotoInfo>(parameters);

            return(info.Tags);
        }
Esempio n. 2
0
 internal static string UrlFormat(PhotoInfo p, string size, string extension)
 {
     return(UrlFormat(p.Farm, p.Server, p.PhotoId, p.Secret, size, extension));
 }