download_party_avatar: Returns the Avatar(s) (images) for Authorized User(s).

View source: R/download_party_avatar.R

download_party_avatarR Documentation

Returns the Avatar(s) (images) for Authorized User(s).

Description

Returns the Avatar(s) (images) for Authorized User(s).

Usage

download_party_avatar(
  party_id = 6,
  show_party_info = TRUE,
  vb = FALSE,
  rq = NULL
)

Arguments

party_id

A number or range of numbers. Party number or numbers to retrieve information about. Default is 6 (Rick Gilmore).

show_party_info

A logical value. Show the person's name and affiliation in the output. Default is TRUE.

vb

A Boolean value. If TRUE returns verbose output. Default is FALSE.

rq

An httr2 request object. If not provided, a new request is generated via make_default_request().

Value

An list with the avatar (image) file and a name_affil string.

Examples


## Not run: 
download_party_avatar() # Show Rick Gilmore's (party 6) avatar.

# Download avatars from Databrary's founders (without name/affiliations)
download_party_avatar(5:7, show_party_info = FALSE)

# Download NYU logo
download_party_avatar(party = 8)

## End(Not run)


PLAY-behaviorome/databraryapi documentation built on April 24, 2024, 4:20 a.m.