Get Shopping Lists

GET
/v1beta/lists

Returns all available shopping lists for user

This API avialable only for user access-token integration

Parameters

ATTRIBUTETYPEDESCRIPTION
ensurePrimaryinteger

Ensure that primary list exists. If it doesn't, it will be created and returned

Sample Request

curl "https://graph.whisk.com/v1beta/lists?ensurePrimary=1" \ -H "Accept: application/json" \ -H "Authorization: Bearer <User-Access-Token>"

Response

ATTRIBUTETYPEDESCRIPTION
retailersarray [ListsItemResponse]

ShoppingList

ATTRIBUTETYPEDESCRIPTION
id*string
name*string
primaryboolean
countinteger

The number of items in the Shopping List

createdTime*datetime

The time the Shopping List was created.

updatedTime*datetime

Sample Response

{ "lists": [ { "id": "ef610b5c0e294ef6a54931738d79f55d", "name": "My Shopping List", "primary": true, "createdTime": "2017-12-07T20:06:14+0000", "updatedTime": "2017-12-07T20:06:14+0000" } ] }