[Maturing]

dw_invite_user(
  team,
  email,
  role = c("member", "admin", "owner"),
  api_key = "environment"
)

Arguments

team

Required. The team-id (can be found in the URL of a teams-folder) as character.

email

Required. The email-address that gets an invitation as character.

role

Required. Set to one of: member, admin, owner. Check this for more informations:

api_key

Optional. A Datawrapper-API-key as character string. Defaults to "environment" - tries to automatically retrieve the key that's stored in the .Reviron-file by datawrapper_auth.

Value

A message of failure or success, derived from the API's status code.

Details

Invites a new team member.

Note

This function invites a email-address to a team.

Author

Benedict Witzenberger

Examples

if (FALSE) { dw_invite_user(team = "testTeam", email = "test_at_test.com", role = "admin") } # uses the preset key in the .Renviron-file