# GET /app-users
res <- httr::GET(
url = paste0(url_, "/app-users"),
httr::authenticate(
user = secret_key,
password = ""
),
query = list(
app_uid = app_uid
)
)
dat <- jsonlite::fromJSON(
httr::content(res, "text", encoding = "UTF-8")
)
# POST /app-users
# test that user limit works when user attempts to create a new user
res <- httr::POST(
url = paste0(url_, "/app-users"),
httr::authenticate(
user = secret_key,
password = ""
),
query = list(
email = "hi3@tychobra.com",
app_uid = app_uid,
is_admin = FALSE
)
)
dat <- jsonlite::fromJSON(
httr::content(res, "text", encoding = "UTF-8")
)
res <- httr::POST(
url = paste0(url_, "/app-users"),
httr::authenticate(
user = secret_key,
password = ""
),
query = list(
email = test_email,
app_uid = app_uid,
is_admin = FALSE
)
)
dat <- jsonlite::fromJSON(
httr::content(res, "text", encoding = "UTF-8")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.