Flickcurl Flickr API Manual | ||||
---|---|---|---|---|
Top | Description |
flickcurl_ticket; void flickcurl_free_ticket (flickcurl_ticket *ticket
); void flickcurl_free_tickets (flickcurl_ticket **tickets_object
); flickcurl_upload_params; flickcurl_upload_status; flickcurl_user_upload_status; void flickcurl_free_upload_status (flickcurl_upload_status *status
); void flickcurl_free_user_upload_status (flickcurl_user_upload_status *u
); void flickcurl_upload_status_free (flickcurl_upload_status *status
);
typedef struct { int id; int photoid; int complete; int invalid; } flickcurl_ticket;
An aysnchronous photo upload ticket.
void flickcurl_free_ticket (flickcurl_ticket *ticket
);
Destructor for ticket object
|
ticket object |
void flickcurl_free_tickets (flickcurl_ticket **tickets_object
);
Destructor for array of ticket objects
|
ticket object array |
typedef struct { const char* photo_file; const char *title; const char *description; const char *tags; int is_public; int is_friend; int is_family; int safety_level; int content_type; /* Flickcurl 1.22+ */ int hidden; } flickcurl_upload_params;
Photo upload parameters
photo filename | |
title or NULL | |
description of photo (HTML) (or NULL) | |
space-separated list of tags (or NULL) | |
is public photo boolean (non-0 true) | |
is friend photo boolean (non-0 true) | |
is family photo boolean (non-0 true) | |
<=0 default, 1=safe, 2=moderate, 3=restricted | |
<=0 default, 1=photo, 2=screenshot, 3=other/artwork | |
<=0 default, 1=in global search, 2=hidden from publish searches (Flickcurl 1.22+) |
typedef struct { char *photoid; char *secret; char *originalsecret; char *ticketid; } flickcurl_upload_status;
An upload response.
typedef struct { char* username; int bandwidth_maxbytes; int bandwidth_maxkb; int bandwidth_usedbytes; int bandwidth_usedkb; int bandwidth_remainingbytes; int bandwidth_remainingkb; int filesize_maxbytes; int filesize_maxkb; int sets_created; char* sets_remaining; } flickcurl_user_upload_status;
A user's upload status
user name | |
max bytes | |
max kbytes | |
used bytes | |
used kbytes | |
remaining bytes | |
remaining kbytes | |
max file size in bytes | |
max file size in kbytes | |
number of sets created | |
remaining sets: 0, 1, 2, 3 or "lots" |
void flickcurl_free_upload_status (flickcurl_upload_status *status
);
Destructor - free a flickcurl_upload_status
|
status object |
void flickcurl_free_user_upload_status (flickcurl_user_upload_status *u
);
Destructor for user upload status object
|
user upload status object |
void flickcurl_upload_status_free (flickcurl_upload_status *status
);