View source: R/dw_invite_user.R
dw_invite_user | R Documentation |
maturing
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. |
email |
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 |
Invites a new team member.
A message of failure or success, derived from the API's status code.
This function invites a email-address to a team.
Benedict Witzenberger
## Not run:
dw_invite_user(team = "testTeam", email = "test_at_test.com", role = "admin")
## End(Not run) # uses the preset key in the .Renviron-file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.