Favourites
- userId
-
Marlin Goldner @marlin_goldner6
- name
- Favourites
- isPublic
- true
- productIds
-
[ 99, 194, 155, 44, 160, 31 ] - createdAt
- updatedAt
Overview
wishlists / #155
[
99,
194,
155,
44,
160,
31
]
Favourites
#155
Request
curl example
curl -sS \
"https://example-data.com/api/v1/wishlists/155" \
-H "Accept: application/json"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/wishlists/155"
);
const wishlist = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/wishlists.d.ts https://example-data.com/types/wishlists.d.ts
import type { Wishlist } from "./types/wishlists";
const res = await fetch(
"https://example-data.com/api/v1/wishlists/155"
);
const wishlist = (await res.json()) as Wishlist;
Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/wishlists/155"
)
wishlist = res.json()
Response
{
"id": 155,
"userId": 160,
"name": "Favourites",
"isPublic": true,
"productIds": [
99,
194,
155,
44,
160,
31
],
"createdAt": "2024-06-28T00:50:01.875Z",
"updatedAt": "2024-07-26T06:18:06.467Z"
}