public PhotosSetMeta ( string photoId, string title, string description ) : bool | ||
photoId | string | The numerical photoId of the photograph. |
title | string | The new title of the photograph. |
description | string | The new description of the photograph. |
return | bool |
private void UpdatePhotoButton_Click(object sender, EventArgs e) { Flickr flickr = new Flickr(ApiKey.Text, SharedSecret.Text, AuthToken.Text); flickr.PhotosSetMeta(PhotoId.Text, NewTitle.Text, null); OutputTextbox.Text += "Photo title updated"; PhotosetCollection sets = flickr.PhotosetsGetList(); Photoset set = sets[0]; flickr.PhotosetsAddPhoto(set.PhotosetId, PhotoId.Text); }
/// <summary> /// this method will update flickr photograph information /// </summary> /// <param name="flickrAuth">authentication string</param> /// <param name="imageUID">image id</param> /// <param name="title">title of phtograph</param> /// <param name="description">description of photograph</param> /// <returns>true if success, false if error/fail</returns> public bool UpdatePhotographInfo(string flickrAuth, string imageUID, string title, string description) { try { flickr.AuthToken = flickrAuth; flickr.PhotosSetMeta(imageUID, title, description); return(true); } catch (Exception ex) { return(false); } }