Saved for Later
- userId
-
Glenna Keebler @glenna_keebler
- name
- Saved for Later
- isPublic
- false
- productIds
-
[ 151, 144, 55, 35, 199, 181, 178, 64 ] - createdAt
- updatedAt
Overview
wishlists / #134
[
151,
144,
55,
35,
199,
181,
178,
64
]
Saved for Later
#134
Request
curl example
curl -sS \
"https://example-data.com/api/v1/wishlists/134" \
-H "Accept: application/json"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/wishlists/134"
);
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/134"
);
const wishlist = (await res.json()) as Wishlist;
Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/wishlists/134"
)
wishlist = res.json()
Response
{
"id": 134,
"userId": 134,
"name": "Saved for Later",
"isPublic": false,
"productIds": [
151,
144,
55,
35,
199,
181,
178,
64
],
"createdAt": "2024-07-10T18:18:29.637Z",
"updatedAt": "2024-12-11T00:30:36.234Z"
}