We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91e35e commit 39ca101Copy full SHA for 39ca101
lib/bring.js
@@ -71,6 +71,20 @@ class Bring {
71
} // endCatch
72
} // endGetItems
73
74
+ /**
75
+ * Get detailed information about all items from the current selected shopping list
76
+ *
77
+ * @return {json}
78
+ */
79
+ async getItemsDetails(listUuid) {
80
+ try {
81
+ const data = await request(`${this.url}bringlists/${listUuid}/details`, {headers: this.headers});
82
+ return Promise.resolve(JSON.parse(data));
83
+ } catch (e) {
84
+ return Promise.reject(`Cannot get detailed items for list ${listUuid}: ${e}`);
85
+ } // endCatch
86
+ } // endGetItemsDetails
87
+
88
/**
89
* Save an item to your current shopping list
90
*
0 commit comments