Top | ![]() |
![]() |
![]() |
![]() |
void
flickcurl_free_gallery (flickcurl_gallery *gallery
);
Destructor for gallery object
void
flickcurl_free_galleries (flickcurl_gallery **galleries_object
);
Destructor for array of gallery objects
int flickcurl_galleries_addPhoto (flickcurl *fc
,const char *gallery_id
,const char *photo_id
,const char *comment_text
);
Add a photo to a gallery.
Implements flickr.galleries.addPhoto (1.17)
fc |
flickcurl context |
|
gallery_id |
The ID of the gallery to add a photo to as returned by |
|
photo_id |
The photo ID to add to the gallery. |
|
comment_text |
A short comment or story to accompany the photo (or NULL). |
char * flickcurl_galleries_create (flickcurl *fc
,const char *title
,const char *description
,const char *primary_photo_id
,char **gallery_url_p
);
Create a new gallery for the calling user.
Implements flickr.galleries.create (1.18)
Announced 2010-04-08 http://code.flickr.com/blog/2010/04/08/galleries-apis/
int flickcurl_galleries_editMeta (flickcurl *fc
,const char *gallery_id
,const char *title
,const char *description
);
Modify the meta-data for a gallery.
Implements flickr.galleries.editMeta (1.18)
Announced 2010-04-08 http://code.flickr.com/blog/2010/04/08/galleries-apis/
int flickcurl_galleries_editPhoto (flickcurl *fc
,const char *gallery_id
,const char *photo_id
,const char *new_comment
);
Edit the comment for a gallery photo.
Implements flickr.galleries.editPhoto (1.18)
Announced 2010-04-08 http://code.flickr.com/blog/2010/04/08/galleries-apis/
int flickcurl_galleries_editPhotos (flickcurl *fc
,const char *gallery_id
,const char *primary_photo_id
,const char **photo_ids_array
);
Modify the photos in a gallery. Use this method to add, remove and re-order photos.
Implements flickr.galleries.editPhotos (1.18)
Announced 2010-04-08 http://code.flickr.com/blog/2010/04/08/galleries-apis/
fc |
flickcurl context |
|
gallery_id |
The id of the gallery to modify. The gallery must belong to the calling user. |
|
primary_photo_id |
The id of the photo to use as the 'primary' photo for the gallery. This id must also be passed along in photo_ids list argument. |
|
photo_ids_array |
Array of photo ids to include in the gallery. They will appear in the set in the order sent. This list MUST contain the primary photo id. This list of photos replaces the existing list. |
flickcurl_gallery * flickcurl_galleries_getInfo (flickcurl *fc
,const char *gallery_id
);
Get information for a gallery.
Implements flickr.galleries.getInfo (1.18)
Announced 2010-04-08 http://code.flickr.com/blog/2010/04/08/galleries-apis/
flickcurl_gallery ** flickcurl_galleries_getList (flickcurl *fc
,const char *user_id
,int per_page
,int page
);
Return the list of galleries created by a user.
Galleries are returned sorted from newest to oldest.
Implements flickr.galleries.getList (1.17)
fc |
flickcurl context |
|
user_id |
The NSID of the user to get a galleries list for. If none is specified, the calling user is assumed. |
|
per_page |
Number of galleries to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500. (or < 0) |
|
page |
The page of results to return. If this argument is omitted, it defaults to 1. (or < 0) |
flickcurl_gallery ** flickcurl_galleries_getListForPhoto (flickcurl *fc
,const char *photo_id
,int per_page
,int page
);
Return the list of galleries to which a photo has been added.
Galleries are returned sorted by date which the photo was added to the gallery.
Implements flickr.galleries.getListForPhoto (1.17)
fc |
flickcurl context |
|
photo_id |
The ID of the photo to fetch a list of galleries for. |
|
per_page |
Number of galleries to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500. (or < 0) |
|
page |
The page of results to return. If this argument is omitted, it defaults to 1. (or < 0) |
flickcurl_photos_list * flickcurl_galleries_getPhotos_params (flickcurl *fc
,const char *gallery_id
,flickcurl_photos_list_params *list_params
);
Return the list of photos for a gallery
Currently supported extras fields are: description, license, date_upload, date_taken, owner_name, icon_server, original_format, last_update, geo, tags, machine_tags, o_dims, views, media, path_alias, url_sq, url_t, url_s, url_m, url_o
fc |
flickcurl context |
|
gallery_id |
The ID of the gallery of photos to return |
|
list_params |
flickcurl_photos_list_params result parameters (or NULL) |
flickcurl_photo ** flickcurl_galleries_getPhotos (flickcurl *fc
,const char *gallery_id
,const char *extras
,int per_page
,int page
);
Return the list of photos for a gallery
See flickcurl_galleries_getPhotos_params()
for details of extras
.
Implements flickr.galleries.getPhotos (1.18)
Announced 2010-04-08 http://code.flickr.com/blog/2010/04/08/galleries-apis/
typedef struct { char *id; char *url; char *owner; int date_create; int date_update; flickcurl_photo* primary_photo; int count_photos; int count_videos; char *title; char *description; } flickcurl_gallery;
A photo gallery.
The list of photos in the gallery is available via the API calls
flickcurl_galleries_getPhotos()
or
flickcurl_galleries_getPhotos_params()
gallery ID |
||
URL of gallery |
||
owner NSID |
||
creation date of gallery |
||
update / last modified date of gallery |
||
flickcurl_photo * |
primary photo for the gallery |
|
number of photos in the gallery |
||
number of photos in the gallery |
||
Gallery title |
||
Gallery description |