![]() |
![]() |
Flickcurl Flickr API Manual | ![]() |
|
---|---|---|---|---|
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);
typedef struct { int id; int photoid; int complete; int invalid; } flickcurl_ticket;
An aysnchronous photo upload ticket.
int |
ticket ID |
int |
photoID |
int |
complete flag |
int |
invalid flag |
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_upload_params;
Photo upload parameters
const char * |
photo filename |
const char * |
title or NULL |
const char * |
description of photo (HTML) (or NULL) |
const char * |
space-separated list of tags (or NULL) |
int |
is public photo boolean (non-0 true) |
int |
is friend photo boolean (non-0 true) |
int |
is family photo boolean (non-0 true) |
int |
1=safe, 2=moderate, 3=restricted |
int |
1=photo, 2=screenshot, 3=other/artwork |
typedef struct { char *photoid; char *secret; char *originalsecret; char *ticketid; } flickcurl_upload_status;
An upload response.
char * |
photo ID that was uploaded/replaced (upload only) |
char * |
secret of photo uploaded (replace only) |
char * |
secret of original photo (replace only) |
char * |
ticket ID for asynchronous upload (replace only) |
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
char * |
user name |
int |
max bytes |
int |
max kbytes |
int |
used bytes |
int |
used kbytes |
int |
remaining bytes |
int |
remaining kbytes |
int |
max file size in bytes |
int |
max file size in kbytes |
int |
number of sets created |
char * |
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 |