getItemResource
getItemResource
FunctiongetItemResource(itemId: string, requestOptions: IGetItemResourceOptions): Promise<any>
Fetches an item resource and optionally parses it to the correct format.
Provides JSON parse error protection by sanitizing out any unescaped control characters before parsing that would otherwise cause an error to be thrown.
Parameters
Parameter | Type | Notes |
---|---|---|
item | string | |
request | IGetItemResourceOptions |
Returns
Promise<any>