People

## People People — People. |

## Synopsis

    char*               flickcurl_people_findByEmail        (flickcurl *fc,
                                                             const char *email);
    char*               flickcurl_people_findByUsername     (flickcurl *fc,
                                                             const char *username);
    flickcurl_person*   flickcurl_people_getInfo            (flickcurl *fc,
                                                             const char *user_id);
    flickcurl_group**   flickcurl_people_getPublicGroups    (flickcurl *fc,
                                                             const char *user_id);
    flickcurl_photo**   flickcurl_people_getPublicPhotos    (flickcurl *fc,
                                                             const char *user_id,
                                                             const char *extras,
                                                             int per_page,
                                                             int page);
    flickcurl_photos_list* flickcurl_people_getPublicPhotos_params
                                                            (flickcurl *fc,
                                                             const char *user_id,
                                                             flickcurl_photos_list_params *list_params);
    flickcurl_user_upload_status* flickcurl_people_getUploadStatus
                                                            (flickcurl *fc);

## Description

People.

## Details

### flickcurl_people_findByEmail ()

    char*               flickcurl_people_findByEmail        (flickcurl *fc,
                                                             const char *email);

Get a user's NSID, given their email address

Implements flickr.people.findByEmail (0.8)

`fc` : | flickcurl context
`email` : | user email address
Returns : | NSID or NULL on failure

### flickcurl_people_findByUsername ()

    char*               flickcurl_people_findByUsername     (flickcurl *fc,
                                                             const char *username);

Get a user's NSID, given their username address

Implements flickr.people.findByUsername (0.8)

`fc` : | flickcurl context
`username` : | username
Returns : | NSID or NULL on failure

### flickcurl_people_getInfo ()

    flickcurl_person*   flickcurl_people_getInfo            (flickcurl *fc,
                                                             const char *user_id);

Get information about a person

Implements flickr.people.getInfo (0.6)

NSID can be found by `flickcurl_people_findByEmail()` or `flickcurl_people_findByUsername()`.

`fc` : | flickcurl context
`user_id` : | user NSID
Returns : | flickcurl_person object or NULL on failure

### flickcurl_people_getPublicGroups ()

    flickcurl_group**   flickcurl_people_getPublicGroups    (flickcurl *fc,
                                                             const char *user_id);

Returns the list of public groups a user is a member of.

Implements flickr.people.getPublicGroups (0.13)

`fc` : | flickcurl context
`user_id` : | The NSID of the user to fetch groups for.
Returns : | non-0 on failure

### flickcurl_people_getPublicPhotos ()

    flickcurl_photo**   flickcurl_people_getPublicPhotos    (flickcurl *fc,
                                                             const char *user_id,
                                                             const char *extras,
                                                             int per_page,
                                                             int page);

Get a list of public photos for the given user.

See `flickcurl_people_getPublicPhotos_params()` for details of extras.

Implements flickr.people.getPublicPhotos (0.12)

`fc` : | flickcurl context
`user_id` : | The NSID of the user who's photos to return.
`extras` : | A comma-delimited list of extra information to fetch for each returned record.
`per_page` : | Number of photos to return per page (default 100, max 500)
`page` : | The page of results to return (default 1)
Returns : | non-0 on failure

### flickcurl_people_getPublicPhotos_params ()

    flickcurl_photos_list* flickcurl_people_getPublicPhotos_params
                                                            (flickcurl *fc,
                                                             const char *user_id,
                                                             flickcurl_photos_list_params *list_params);

Get a list of public photos for the given user.

Currently supported extras fields are: license, date_upload, date_taken, owner_name, icon_server, original_format, last_update, geo, tags, machine_tags.

Optional extra type 'media' that will return an extra media=VALUE for VALUE "photo" or "video". API addition 2008-04-07.

`fc` : | flickcurl context
`user_id` : | The NSID of the user who's photos to return.
`list_params` : | flickcurl_photos_list_params result parameters (or NULL)
Returns : | non-0 on failure

### flickcurl_people_getUploadStatus ()

    flickcurl_user_upload_status* flickcurl_people_getUploadStatus
                                                            (flickcurl *fc);

Returns information for the calling user related to photo uploads.

Implements flickr.people.getUploadStatus (0.13)

`fc` : | flickcurl context
Returns : | non-0 on failure