Search.../

listBookmarks( )

Retrieves a list of bookmarked schedule items for a currently logged-in member.

Syntax

function listBookmarks(eventId: string): Promise<ListBookmarksResponse>

listBookmarks Parameters

NAME
TYPE
DESCRIPTION
eventId
string

Event ID to which the schedule belongs.

Returns

Return Type:

Promise<
ListBookmarksResponse
>
NAME
TYPE
DESCRIPTION
items
Array<
ScheduleItem
>

Schedule items.

Was this helpful?

listBookmarks example

Copy Code
1import { scheduleBookmarks } from 'wix-events.v2';
2
3 async function listBookmarks(eventId) {
4 try {
5 const result = await scheduleBookmarks.listBookmarks(eventId);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13