| Flickcurl Flickr API Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
flickcurl_activity;
flickcurl_activity_event;
flickcurl_activity** flickcurl_activity_userComments (flickcurl *fc,
int per_page,
int page);
flickcurl_activity** flickcurl_activity_userPhotos (flickcurl *fc,
const char *timeframe,
int per_page,
int page);
void flickcurl_free_activities (flickcurl_activity **activities_object);
typedef struct {
char *type; /* photoset or photo */
char *owner;
char *owner_name;
char *primary;
/* photo info: ID/secret/server/farm */
char *id;
char *secret;
int server;
int farm;
/* counts */
int comments_old;
int comments_new;
int notes_old;
int notes_new;
int views;
int comments;
int photos;
int faves;
/* flags */
int more;
char* title;
/* Array of events on this item */
flickcurl_activity_event* events[FLICKCURL_MAX_ACTIVITY_EVENTS+1];
} flickcurl_activity;
Comments or photos item with activity
char * |
activity type photoset or photo |
char * |
owner NSID |
char * |
owner name |
char * |
primary |
char * |
photo id |
char * |
photo secret |
int |
photo server |
int |
photo farm |
int |
old comments count |
int |
new comments count |
int |
old notes count |
int |
new notes count |
int |
views count |
int |
comments count |
int |
photos count |
int |
favourites count |
int |
more boolean flag |
char * |
title of acitivty |
flickcurl_activity_event * |
array of events associated with this actiivty |
typedef struct {
char *type; /* comment or note */
char *id;
char *user;
char *username;
char *value;
int date_added;
} flickcurl_activity_event;
Comment or photo activity event
char * |
activty event type |
char * |
ID |
char * |
user ID |
char * |
user name |
char * |
event value |
int |
date added |
flickcurl_activity** flickcurl_activity_userComments (flickcurl *fc, int per_page, int page);
Returns a list of recent activity on photos commented on by the calling user.
Implements flickr.activity.userComments (1.0)
|
flickcurl context |
|
Number of items to return per page. If this argument is omitted, it defaults to 10. The maximum allowed value is 50. |
|
The page of results to return. If this argument is omitted, it defaults to 1. |
Returns : |
non-0 on failure |
flickcurl_activity** flickcurl_activity_userPhotos (flickcurl *fc, const char *timeframe, int per_page, int page);
Returns a list of recent activity on photos belonging to the calling user. Do not poll this method more than once an hour.
Implements flickr.activity.userPhotos (1.0)
|
flickcurl context |
|
The timeframe in which to return updates for. This can be specified in days ('2d') or hours ('4h'). The default behavoir is to return changes since the beginning of the previous user session. (or NULL)
|
|
Number of items to return per page. If this argument is omitted, it defaults to 10. The maximum allowed value is 50. (or NULL) |
|
The page of results to return. If this argument is omitted, it defaults to 1. (or NULL) |
Returns : |
non-0 on failure |
void flickcurl_free_activities (flickcurl_activity **activities_object);
Destructor for array of activity objects
|
activity object array |