Learn R Programming

arcgisutils (version 0.4.0)

content: Portal Content Items

Description

For a given user or group, returns a data.frame of all content items owned by them.

Usage

arc_group_content(group, host = arc_host(), token = arc_token())

arc_user_content(user, host = arc_host(), token = arc_token())

Value

a data.frame of content item metadata

Arguments

group

a scalar character of the group ID or a PortalGroup object created using arc_group()

host

default "https://www.arcgis.com". The host of your ArcGIS Portal.

token

an httr2_token as created by auth_code() or similar

user

a scalar character of the username or a PortalUser object created using arc_user()

References

Examples

Run this code
if (FALSE) {
library(arcgis)

# authenticate
set_arc_token(auth_user())

# get your own content items
self <- arc_user_self()
arc_user_content(self$username)

# get a specific group's items
arc_group_content("2f0ec8cb03574128bd673cefab106f39")
}

Run the code above in your browser using DataLab