Skip to content

Commit

Permalink
Merge pull request #2 from rstudio/fix-users
Browse files Browse the repository at this point in the history
rename some users functions
  • Loading branch information
colearendt authored Jan 23, 2019
2 parents 83d4362 + 005e33c commit ecb9916
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/connect.R
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Connect <- R6::R6Class(
self$GET(path)
},

create_users = function(
users_create = function(
email, first_name, last_name,
password, user_must_set_password,
user_role, username
Expand All @@ -210,23 +210,23 @@ Connect <- R6::R6Class(
))
},

lock_user = function(user_guid) {
users_lock = function(user_guid) {
path <- sprintf('v1/users/%s/lock', user_guid)
message(path)
self$POST(path = path,
body = list(locked = TRUE)
)
},

unlock_user = function(user_guid) {
user_unlock = function(user_guid) {
path <- sprintf('v1/users/%s/lock', user_guid)
self$POST(
path = path,
body = list(locked = FALSE)
)
},

update_user = function(user_guid, email, ...) {
users_update = function(user_guid, email, ...) {
path <- sprintf('v1/users/%s', user_guid)
self$PUT(
path = path,
Expand Down

0 comments on commit ecb9916

Please sign in to comment.