Contacts

Contacts — A contact of a user.

Synopsis




                    flickcurl_contact;
flickcurl_contact** flickcurl_contacts_getList          (flickcurl *fc,
                                                         const char *filter,
                                                         int page,
                                                         int per_page);
flickcurl_contact** flickcurl_contacts_getPublicList    (flickcurl *fc,
                                                         const char *user_id,
                                                         int page,
                                                         int per_page);
void                flickcurl_free_contact              (flickcurl_contact *contact_object);
void                flickcurl_free_contacts             (flickcurl_contact **contacts_object);

Description

A contact of a user.

Details

flickcurl_contact

typedef struct {
  char *nsid;
  char *username;
  int iconserver;
  char *realname;
  int is_friend;
  int is_family;
  int ignored;
} flickcurl_contact;

A contact.

char *nsid;

NSID

char *username;

user name

int iconserver;

icon server

char *realname;

real name

int is_friend;

is friend boolean

int is_family;

is family boolean

int ignored;

ignored

flickcurl_contacts_getList ()

flickcurl_contact** flickcurl_contacts_getList          (flickcurl *fc,
                                                         const char *filter,
                                                         int page,
                                                         int per_page);

Get a list of contacts for the calling user.

Implements flickr.contacts.getList (0.11)

fc :

flickcurl context

filter :

An optional filter of the results. The following values are valid: friends, family, both or neither (or NULL)

page :

The page of results to return. If this argument is omitted, it defaults to 1. (or NULL)

per_page :

Number of photos to return per page. If this argument is omitted, it defaults to 1000. The maximum allowed value is 1000. (or NULL)

Returns :

non-0 on failure

flickcurl_contacts_getPublicList ()

flickcurl_contact** flickcurl_contacts_getPublicList    (flickcurl *fc,
                                                         const char *user_id,
                                                         int page,
                                                         int per_page);

Get the contact list for a user.

Implements flickr.contacts.getPublicList (0.11)

fc :

flickcurl context

user_id :

The NSID of the user to fetch the contact list for.

page :

The page of results to return. If this argument is omitted, it defaults to 1. (or NULL)

per_page :

Number of photos to return per page. If this argument is omitted, it defaults to 1000. The maximum allowed value is 1000. (or NULL)

Returns :

non-0 on failure

flickcurl_free_contact ()

void                flickcurl_free_contact              (flickcurl_contact *contact_object);

Destructor for contact object

contact_object :

contact object

flickcurl_free_contacts ()

void                flickcurl_free_contacts             (flickcurl_contact **contacts_object);

Destructor for array of contact object

contacts_object :

contact object array