users | R Documentation |
Interact with user endpoints. One should never analyze alone...
## S4 method for signature 'UserSession'
users.list(
UserSession,
output = "default",
timeout = UserSession@short_timeout
)
## S4 method for signature 'UserSession'
users.show(
UserSession,
user_id,
output = "default",
timeout = UserSession@short_timeout
)
UserSession |
Cytobank UserSession object |
output |
character representing the output format [optional] |
timeout |
integer representing the request timeout time in seconds [optional] |
user_id |
integer representing a user ID |
users.list
List all users on a Cytobank server (admin access only). Outputs a dataframe [default] or raw list with all fields present.
- Optional output parameter, specify one of the following: ("default", "raw")
users.show
Show user details (admin access only, except for self).
- Optional output parameter, specify one of the following: ("default", "raw")
## Not run: # Authenticate via username/password
cyto_session <- authenticate(site="premium", username="cyril_cytometry", password="cytobank_rocks!")
# Authenticate via auth_token
cyto_session <- authenticate(site="premium", auth_token="my_secret_auth_token")
## End(Not run)
## Not run: # Dataframe of all users with all fields present
users.list(cyto_session)
# Raw list of all useres with all fields present
users.list(cyto_session, output="raw")
## End(Not run)
## Not run: users.show(cyto_session, user_id=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.