getItem
FunctiongetItem(id: string, requestOptions?: IRequestOptions): Promise<IItem>
import { getItem } from "@esri/arcgis-rest-portal";
//
getItem("ae7")
.then(response);
// or
getItem("ae7", { authentication })
.then(response)
Get an item by id. See the REST Documentation for more information.
Parameters
Parameter | Type | Notes |
---|---|---|
id | string | Item Id |
request | IRequestOptions | Options for the request |
Returns
Promise<IItem>
A Promise that will resolve with the data from the response.