getUserContent

getUserContent

constant
Function
getUserContent(requestOptionsIUserContentRequestOptions): Promise<IUserContentResponse>

Returns a listing of the user's content. If the username is not supplied, it defaults to the username of the authenticated user. If start is not specified it defaults to the first page.

If the num is not supplied it is defaulted to 10. See the REST Documentation for more information.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
import { getUserContent } from "@esri/arcgis-rest-portal";

getUserContent({
   owner: 'geemike',
   folderId: 'bao7',
   start: 1,
   num: 20,
   authentication
})
Parameters
ParameterTypeNotes
requestOptions
IUserContentRequestOptions

Options for the request

Returns 
Promise<IUserContentResponse>

A Promise<IUserContentResponse>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.