Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 1.09 KB

File metadata and controls

63 lines (46 loc) · 1.09 KB

Manage My Favorite items

getMyFavItems

get items from My Favorite Group

getMyFavItems() : Promise<IItem[]>

Example

import {
    setDefaultOptions,
    getMyFavItems
} from '@vannizhang/arcgis-rest-helper';

setDefaultOptions({
    groupId: 'abc123',
    myFavGroupId: 'edf345',
    identidyManager,
})

const myFavItems = await getMyFavItems();

Returns

IItem[]


toggleShareWithMyFavGroup

toggle share an item with My Favorite Group

toggleShareWithMyFavGroup(itemId:string) : Promise<ISharingResponse>

Example

import {
    setDefaultOptions,
    getMyFavItems
} from '@vannizhang/arcgis-rest-helper';

setDefaultOptions({
    groupId: 'abc123',
    myFavGroupId: 'edf345',
    identidyManager,
})

const res = await toggleShareWithMyFavGroup('efd567);

Parameters

Parameter Type Default Note
itemId string

Returns

ISharingResponse