Flickcurl Flickr API Manual | ||||
---|---|---|---|---|
Top | Description |
flickcurl_photoset; void flickcurl_free_photoset (flickcurl_photoset *photoset
); void flickcurl_free_photosets (flickcurl_photoset **photosets_object
); int flickcurl_photosets_addPhoto (flickcurl *fc
,const char *photoset_id
,const char *photo_id
); char * flickcurl_photosets_comments_addComment (flickcurl *fc
,const char *photoset_id
,const char *comment_text
); int flickcurl_photosets_comments_deleteComment (flickcurl *fc
,const char *comment_id
); int flickcurl_photosets_comments_editComment (flickcurl *fc
,const char *comment_id
,const char *comment_text
); flickcurl_comment ** flickcurl_photosets_comments_getList (flickcurl *fc
,const char *photoset_id
); char * flickcurl_photosets_create (flickcurl *fc
,const char *title
,const char *description
,const char *primary_photo_id
,char **photoset_url_p
); int flickcurl_photosets_delete (flickcurl *fc
,const char *photoset_id
); int flickcurl_photosets_editMeta (flickcurl *fc
,const char *photoset_id
,const char *title
,const char *description
); int flickcurl_photosets_editPhotos (flickcurl *fc
,const char *photoset_id
,const char *primary_photo_id
,const char **photo_ids_array
); flickcurl_context ** flickcurl_photosets_getContext (flickcurl *fc
,const char *photo_id
,const char *photoset_id
); flickcurl_photoset * flickcurl_photosets_getInfo (flickcurl *fc
,const char *photoset_id
); flickcurl_photoset ** flickcurl_photosets_getList (flickcurl *fc
,const char *user_id
); flickcurl_photo ** flickcurl_photosets_getPhotos (flickcurl *fc
,const char *photoset_id
,const char *extras
,int privacy_filter
,int per_page
,int page
); flickcurl_photos_list * flickcurl_photosets_getPhotos_params (flickcurl *fc
,const char *photoset_id
,int privacy_filter
,flickcurl_photos_list_params *list_params
); int flickcurl_photosets_orderSets (flickcurl *fc
,const char **photoset_ids_array
); int flickcurl_photosets_removePhoto (flickcurl *fc
,const char *photoset_id
,const char *photo_id
); int flickcurl_photosets_removePhotos (flickcurl *fc
,const char *photoset_id
,const char **photo_ids_array
); int flickcurl_photosets_reorderPhotos (flickcurl *fc
,const char *photoset_id
,const char **photo_ids_array
); int flickcurl_photosets_setPrimaryPhoto (flickcurl *fc
,const char *photoset_id
,const char *photo_id
);
typedef struct { char *id; char *primary; char *secret; int server; int farm; int photos_count; char* title; char *description; struct flickcurl_photo_s** photos; char *owner; } flickcurl_photoset;
A photoset.
photoset ID | |
primary photo ID | |
secret | |
server | |
farm | |
count of photos in set | |
title of photoset | |
description of photoset (may be NULL) | |
photos in a photoset (may be NULL) | |
owner NSID |
void flickcurl_free_photoset (flickcurl_photoset *photoset
);
Destructor for photoset object
|
photoset object |
void flickcurl_free_photosets (flickcurl_photoset **photosets_object
);
Destructor for array of photoset object
|
photoset object array |
int flickcurl_photosets_addPhoto (flickcurl *fc
,const char *photoset_id
,const char *photo_id
);
Add a photo to the end of an existing photoset.
Implements flickr.photosets.addPhoto (0.13)
|
flickcurl context |
|
The id of the photoset to add a photo to. |
|
The id of the photo to add to the set. |
Returns : |
non-0 on failure |
char * flickcurl_photosets_comments_addComment (flickcurl *fc
,const char *photoset_id
,const char *comment_text
);
Add a comment to a photoset.
Implements flickr.photosets.comments.addComment (0.10)
|
flickcurl context |
|
The id of the photoset to add a comment to. |
|
Text of the comment |
Returns : |
new comment ID or non-NULL on failure |
int flickcurl_photosets_comments_deleteComment (flickcurl *fc
,const char *comment_id
);
Delete a photoset comment as the currently authenticated user.
Implements flickr.photosets.comments.deleteComment (0.10)
|
flickcurl context |
|
The id of the comment to delete from a photoset. |
Returns : |
non-0 on failure |
int flickcurl_photosets_comments_editComment (flickcurl *fc
,const char *comment_id
,const char *comment_text
);
Edit the text of a comment as the currently authenticated user.
Implements flickr.photosets.comments.editComment (0.10)
|
flickcurl context |
|
The id of the comment to edit. |
|
Update the comment to this text. |
Returns : |
non-0 on failure |
flickcurl_comment ** flickcurl_photosets_comments_getList (flickcurl *fc
,const char *photoset_id
);
Returns the comments for a photoset.
Implements flickr.photosets.comments.getList (0.10)
|
flickcurl context |
|
The id of the photoset to fetch comments for. |
Returns : |
array of comments or NULL on failure |
char * flickcurl_photosets_create (flickcurl *fc
,const char *title
,const char *description
,const char *primary_photo_id
,char **photoset_url_p
);
Create a new photoset for the calling user.
Implements flickr.photosets.create (0.13)
|
flickcurl context |
|
A title for the photoset. |
|
A description of the photoset which may contain limited html (or NULL) |
|
The id of the photo to represent this set. The photo must belong to the calling user. |
|
pointer to variable to store new photoset URL (or NULL) |
Returns : |
photoset ID or NULL on failure |
int flickcurl_photosets_delete (flickcurl *fc
,const char *photoset_id
);
Delete a photoset.
Implements flickr.photosets.delete (0.13)
|
flickcurl context |
|
The id of the photoset to delete. Must be owned by the calling user. |
Returns : |
non-0 on failure |
int flickcurl_photosets_editMeta (flickcurl *fc
,const char *photoset_id
,const char *title
,const char *description
);
Modify the meta-data for a photoset.
Implements flickr.photosets.editMeta (0.13)
|
flickcurl context |
|
The id of the photoset to modify. |
|
The new title for the photoset. |
|
A description of the photoset which may contain limited html (or NULL) |
Returns : |
non-0 on failure |
int flickcurl_photosets_editPhotos (flickcurl *fc
,const char *photoset_id
,const char *primary_photo_id
,const char **photo_ids_array
);
Modify the photos in a photoset.
Use this method to add, remove and re-order photos.
Implements flickr.photosets.editPhotos (0.13)
|
flickcurl context |
|
The id of the photoset to modify. Must belong to the calling user. |
|
The id of the photo to use as the 'primary' photo for the set. This id must also be passed along in photo_ids list argument. |
|
Array of photo ids to include in the set. They will appear in the set in the order sent. This list MUST contain the primary photo id. All photos must belong to the owner of the set. This list of photos replaces the existing list. Call flickr.photosets.addPhoto to append a photo to a set. |
Returns : |
non-0 on failure |
flickcurl_context ** flickcurl_photosets_getContext (flickcurl *fc
,const char *photo_id
,const char *photoset_id
);
Get next and previous photos for a photo in a set.
Implements flickr.photosets.getContext (0.7)
|
flickcurl context |
|
photo ID |
|
photoset ID |
Returns : |
an array of size 3 [prev, next, NULL] flickcurl_context* or NULL on error |
flickcurl_photoset * flickcurl_photosets_getInfo (flickcurl *fc
,const char *photoset_id
);
Gets information about a photoset.
Implements flickr.photosets.getInfo (0.13)
|
flickcurl context |
|
The ID of the photoset to fetch information for. |
Returns : |
non-0 on failure |
flickcurl_photoset ** flickcurl_photosets_getList (flickcurl *fc
,const char *user_id
);
Returns the photosets belonging to the specified user.
Implements flickr.photosets.getList (0.13)
|
flickcurl context |
|
The NSID of the user to get a photoset list for. If none is specified, the calling user is assumed (or NULL) |
Returns : |
array of photoset IDs or NULL on failure |
flickcurl_photo ** flickcurl_photosets_getPhotos (flickcurl *fc
,const char *photoset_id
,const char *extras
,int privacy_filter
,int per_page
,int page
);
Get the list of photos in a set.
See flickcurl_photosets_getPhotos_params()
for details of parameters.
Implements flickr.photosets.getPhotos (0.13)
|
flickcurl context |
|
The id of the photoset to return the photos for. |
|
A comma-delimited list of extra information to fetch for each returned record (or NULL) |
|
Return photos only matching a certain privacy level 1-5 (or <0) |
|
Number of photos to return per page. If this argument is omitted, it defaults to 500. 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 : |
list of photos or NULL on failure |
flickcurl_photos_list * flickcurl_photosets_getPhotos_params (flickcurl *fc
,const char *photoset_id
,int privacy_filter
,flickcurl_photos_list_params *list_params
);
Get the list of photos in a set.
Currently supported extra fields are: license, date_upload, date_taken, owner_name, icon_server, original_format, last_update.
Optional extra type 'media' that will return an extra media = VALUE for VALUE "photo" or "video". API addition 2008-04-07.
|
flickcurl context |
|
The id of the photoset to return the photos for. |
|
Return photos only matching a certain privacy level 1-5 (or <0) |
|
flickcurl_photos_list_params result parameters (or NULL) |
Returns : |
list of photos or NULL on failure |
int flickcurl_photosets_orderSets (flickcurl *fc
,const char **photoset_ids_array
);
Set the order of photosets for the calling user.
Implements flickr.photosets.orderSets (0.13)
|
flickcurl context |
|
Array of photoset IDs, ordered with the set to show first, first in the list. Any set IDs not given in the list will be set to appear at the end of the list, ordered by their IDs. |
Returns : |
non-0 on failure |
int flickcurl_photosets_removePhoto (flickcurl *fc
,const char *photoset_id
,const char *photo_id
);
Remove a photo from a photoset.
Implements flickr.photosets.removePhoto (0.13)
|
flickcurl context |
|
The id of the photoset to remove a photo from. |
|
The id of the photo to remove from the set. |
Returns : |
non-0 on failure |
int flickcurl_photosets_removePhotos (flickcurl *fc
,const char *photoset_id
,const char **photo_ids_array
);
Remove multiple photos from a photoset.
Implements flickr.photosets.removePhotos (1.19)
|
flickcurl context |
|
The id of the photoset to remove photos from. |
|
Array of photo ids to remove from the photoset. |
Returns : |
non-0 on failure |
int flickcurl_photosets_reorderPhotos (flickcurl *fc
,const char *photoset_id
,const char **photo_ids_array
);
(null)
Implements flickr.photosets.reorderPhotos (1.19)
|
flickcurl context |
|
The id of the photoset to reorder. The photoset must belong to the calling user. |
|
Array of Ordered list of photo ids. Photos that are not in the list will keep their original order |
Returns : |
non-0 on failure |
int flickcurl_photosets_setPrimaryPhoto (flickcurl *fc
,const char *photoset_id
,const char *photo_id
);
Set photoset primary photo
Implements flickr.photosets.setPrimaryPhoto (1.19)
|
flickcurl context |
|
The id of the photoset to set primary photo to. |
|
The id of the photo to set as primary. |
Returns : |
non-0 on failure |