Syrup Sandbox
// The code snippet below provides demo project, page and respondent IDs.
// Click code to edit and feel free to substitute IDs for your own projects once data is available there.
// Hit `Execute` to test some code, results are displayed in the `console area` below.
var r = await syrup.fetchRespondentData({
projectID: '8fcbb2dc-8093-40d7-6c41-88ecccdcb2aa',
pageID: 'b8b70dca-a5b8-4a1a-4a8f-f60254fea95c',
respondentID: 'HNTEST12',
})
var basket = r
.questions()
.baskets()
.get()
console.log(basket)