ndex_user_get_showcase | R Documentation |
This is a convenience function to support "user pages" in NDEx applications. This function returns a list of network summary objects that the user who is specified by userid chose to display in his or her home page. For authenticated users, this function returns the networks that the authenticated user can read, for anonymous users, this function returns only public networks.
ndex_user_get_showcase(ndexcon, userId)
ndexcon |
object of class NDExConnection linkndex_connect |
userId |
character; unique ID (UUID) of the user |
data.frame of networks (name, description, externalId, uri, etc.) in the showcase of the specified user
GET: ndex_config$api$user$showcase
Compatible to NDEx server version 2.0
## Establish a server connection
ndexcon = ndex_connect()
## get user by name to get UUID
user = ndex_find_user_byName(ndexcon, 'ndextutorials')
userId = user$externalId
## get all network permissions of the user
showcase = ndex_user_get_showcase(ndexcon, userId)
names(showcase)
## [1] "ownerUUID" "isReadOnly" "subnetworkIds" "errorMessage" "isValid"
## [6] "warnings" "isShowcase" "visibility" "edgeCount" "nodeCount"
##[11] "uri" "version" "owner" "name" "properties"
##[16] "description" "externalId" "isDeleted" "modificationTime" "creationTime"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.