This function allows you to retrieve metadata for a single workspace

getWorkspace(user, id)

Arguments

user

A labstep user object. Must contain an `api_key` field. Returned from `login` command

id

ID of the workspace to retrieve

Value

Returns a `workspace` object

Examples

user <- login("demo@labstep.com","demopassword") workspace <- getWorkspace(user,1186) print(workspace)
#> $id #> [1] 1186 #> #> $name #> [1] "My First Workspace" #> #> $protocol_collection_count #> [1] 80 #> #> $owners #> $owners[[1]] #> $owners[[1]]$id #> [1] 4524 #> #> $owners[[1]]$username #> [1] "demo@labstep.com" #> #> $owners[[1]]$name #> [1] "Demo Labstep" #> #> $owners[[1]]$first_name #> [1] "Demo" #> #> $owners[[1]]$profile #> $owners[[1]]$profile$id #> [1] 5751 #> #> $owners[[1]]$profile$about #> NULL #> #> $owners[[1]]$profile$photo #> NULL #> #> #> #> #> $deleted_at #> NULL #> #> $profile #> $profile$id #> [1] 5862 #> #> $profile$about #> NULL #> #> $profile$photo #> NULL #> #> #> $resource_wishlists #> $resource_wishlists[[1]] #> $resource_wishlists[[1]]$id #> [1] 5875 #> #> #> #> $invitations #> list() #> #> $permissions #> $permissions$view #> [1] TRUE #> #> $permissions$edit #> [1] TRUE #> #> $permissions$owner #> [1] TRUE #> #> #> $security_policy #> $security_policy$id #> [1] 1316 #> #> $security_policy$experiment_workflow #> [1] "none" #> #> $security_policy$protocol_collection #> [1] "none" #> #> $security_policy$resource #> [1] "none" #> #> #> $user_groups #> $user_groups[[1]] #> $user_groups[[1]]$id #> [1] 1973 #> #> $user_groups[[1]]$type #> [1] "owner" #> #> $user_groups[[1]]$security_policy #> NULL #> #> $user_groups[[1]]$user #> $user_groups[[1]]$user$id #> [1] 4524 #> #> $user_groups[[1]]$user$username #> [1] "demo@labstep.com" #> #> $user_groups[[1]]$user$name #> [1] "Demo Labstep" #> #> $user_groups[[1]]$user$first_name #> [1] "Demo" #> #> $user_groups[[1]]$user$profile #> $user_groups[[1]]$user$profile$id #> [1] 5751 #> #> $user_groups[[1]]$user$profile$about #> NULL #> #> $user_groups[[1]]$user$profile$photo #> NULL #> #> #> #> #>