dw_invite_user( team, email, role = c("member", "admin", "owner"), api_key = "environment" )
team | Required. The team-id (can be found in the URL of a teams-folder) as character. |
---|---|
Required. The email-address that gets an invitation as character. |
|
role | Required. Set to one of: |
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 |
A message of failure or success, derived from the API's status code.
Invites a new team member.
This function invites a email-address to a team.
Benedict Witzenberger
if (FALSE) { dw_invite_user(team = "testTeam", email = "test_at_test.com", role = "admin") } # uses the preset key in the .Renviron-file