wndr_get_avatar: Avatar API

Description Usage Arguments Value See Also Examples

Description

User avatars of different sizes can be fetched or loaded inline in HTML.

Usage

1
2
wndr_get_avatar(user_id, size = c(25, 28, 30, 32, 50, 54, 56, 60, 64, 108,
  128, 135, 256, 270, 512), fallback = TRUE)

Arguments

user_id

User ID.

size

Image size. Possible values are 25, 28, 30, 32, 50, 54, 56, 60, 64, 108, 128, 135, 256, 270, 512.

fallback

If FALSE, no content will be returned when there is no custom avatar uploaded for the given user_id.

Value

matrix, the parsed result of response PNG image.

See Also

https://developer.wunderlist.com/documentation/endpoints/avatar

Examples

1
2
3
4
5
## Not run: 
  x <- wndr_get_avatar(1, 128, fallback = TRUE)
  plot(as.raster(x))

## End(Not run)

yutannihilation/wunderlistr documentation built on May 4, 2019, 7:46 p.m.