![]() |
![]() |
Flickcurl Flickr API Manual | ![]() |
|
---|---|---|---|---|
Top | Description |
flickcurl_gallery; void flickcurl_free_galleries (flickcurl_gallery **galleries_object); int flickcurl_galleries_addPhoto (flickcurl *fc, const char *gallery_id, const char *photo_id, const char *comment_text); flickcurl_gallery** flickcurl_galleries_getList (flickcurl *fc, const char *user_id, int per_page, int page); flickcurl_gallery** flickcurl_galleries_getListForPhoto (flickcurl *fc, const char *photo_id, int per_page, int page);
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 not curently available via the API. It should be flickr.galleries.getInfo() but that is does not exist at this date 2010-01-21.
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 |
void flickcurl_free_galleries (flickcurl_gallery **galleries_object);
Destructor for array of gallery objects
|
gallery object array |
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)
|
flickcurl context |
|
The ID of the gallery to add a photo to as returned by flickcurl_galleries_getList() and flickcurl_galleries_getListForPhoto() .
|
|
The photo ID to add to the gallery. |
|
A short comment or story to accompany the photo (or NULL). |
Returns : |
non-0 on failure |
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)
|
flickcurl context |
|
The NSID of the user to get a galleries list for. If none is specified, the calling user is assumed. |
|
Number of galleries to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500. (or < 0) |
|
The page of results to return. If this argument is omitted, it defaults to 1. (or < 0) |
Returns : |
array of galleries or NULL on failure |
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)
|
flickcurl context |
|
The ID of the photo to fetch a list of galleries for. |
|
Number of galleries to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500. (or < 0) |
|
The page of results to return. If this argument is omitted, it defaults to 1. (or < 0) |
Returns : |
array of galleries or NULL on failure |