cllovers: Retrieve a user (lover)

Description Usage Arguments Details Value Author(s) References Examples

View source: R/cllovers.r

Description

Retrieve a lover (user) or set of lovers from the COLOURlovers API.

Usage

1
2
3
cllovers(set = NULL, ..., fmt = "xml")

cllover(user, comments = FALSE, fmt = "xml")

Arguments

set

Optionally, a subset of COLOURlovers palettes. Allowed values are “new” and “top”.

...

A named list of parameters passed to the API request. Allowed parameters are orderCol, sortBy, numResults, and resultOffset. Specifying orderCol overrules any argument to set. See details.

fmt

A format for the API response, one of “xml” (the default) or “json”. This has essentially no effect on function behavior.

user

The COLOURlovers username for a specific user.

comments

A boolean indicating whether to include the last ten comments for the user. Default is FALSE.

Details

Retrieve details about a COLOURlovers user or users.

Specifying named arguments to ... allows the user to request a specific response, as follows:

Value

A list of class “cllover”, including details about one or more users. This should be the same regardless of the value of fmt.

Author(s)

Thomas J. Leeper

References

http://www.colourlovers.com/api/#lovers

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Retrieve top users
cllovers(set = 'top', fmt = 'json')

# Retrieve a single user
cllover('COLOURlovers', fmt = 'json')

## End(Not run)

colourlovers documentation built on Jan. 13, 2021, 11:52 a.m.