|  |  | Flickcurl Flickr API Manual |  | |
|---|---|---|---|---|
| Top | Description | ||||
flickcurl_blog; flickcurl_blog ** flickcurl_blogs_getList (flickcurl *fc); flickcurl_blog_service; flickcurl_blog_service ** flickcurl_blogs_getServices (flickcurl *fc); int flickcurl_blogs_postPhoto (flickcurl *fc,const char *blog_id,const char *photo_id,const char *title,const char *description,const char *blog_password); void flickcurl_free_blogs (flickcurl_blog **blogs_object); void flickcurl_free_blog_services (flickcurl_blog_service **blog_services_object);
typedef struct {
  char* id;
  char* name;
  int needs_password;
  char* url;
} flickcurl_blog;
A blog.
flickcurl_blog **   flickcurl_blogs_getList             (flickcurl *fc);
Get a list of configured blogs for the calling user.
Implements flickr.blogs.getList (1.0)
| 
 | flickcurl context | 
| Returns : | non-0 on failure | 
typedef struct {
  char* id;
  char* name;
} flickcurl_blog_service;
A blog service.
flickcurl_blog_service ** flickcurl_blogs_getServices   (flickcurl *fc);
Return a list of Flickr supported blogging services
Implements flickr.blogs.getServices (1.12)
| 
 | flickcurl context | 
| Returns : | list of services or NULL on failure | 
int flickcurl_blogs_postPhoto (flickcurl *fc,const char *blog_id,const char *photo_id,const char *title,const char *description,const char *blog_password);
Post a photo to a blog/
Implements flickr.blogs.postPhoto (1.0)
| 
 | flickcurl context | 
| 
 | The id of the blog to post to | 
| 
 | The id of the photo to blog | 
| 
 | The blog post title | 
| 
 | The blog post body | 
| 
 | The password for the blog (used when the blog does not have a stored password) (or NULL) | 
| Returns : | non-0 on failure | 
void                flickcurl_free_blogs                (flickcurl_blog **blogs_object);
Destructor for array of blog objects
| 
 | blog object array | 
void                flickcurl_free_blog_services        (flickcurl_blog_service **blog_services_object);
Destructor for array of blog services objects
| 
 | blog services object array |