View source: R/suso_api_user.R
suso_archUSR | R Documentation |
(Un-)Archive user
suso_archUSR(
url = suso_get_api_key("susoServer"),
usr = suso_get_api_key("susoUser"),
pass = suso_get_api_key("susoPass"),
uid = NULL,
archive = F,
workspace = NULL,
token = NULL
)
url |
Survey Solutions server address |
usr |
Survey Solutions API user |
pass |
Survey Solutions API password |
uid |
user id |
archive |
if TRUE user will be archived or statys archived, if FALSE user will be unarchived or stays unarchived |
workspace |
If workspace name is provide requests are made regarding this specific workspace, if no workspace is provided defaults to primary workspace. |
token |
If Survey Solutions server token is provided usr and pass will be ignored |
## Not run:
# you can archive a user by archive=T
suso_archUSR(
workspace = "myworkspace",
uid = "xxxx-xxxx-xxxx-xxx",
archive = TRUE
)
# and unarchive a user by archive=F
suso_archUSR(
workspace = "myworkspace",
uid = "xxxx-xxxx-xxxx-xxx",
archive = FALSE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.