Saved for Later
- userId
-
Adelia Roberts @adelia_roberts0
- name
- Saved for Later
- isPublic
- false
- productIds
-
[ 130, 121, 57, 146, 175, 198 ] - createdAt
- updatedAt
Overview
wishlists / #221
[
130,
121,
57,
146,
175,
198
]
Saved for Later
#221
Request
curl example
curl -sS \
"https://example-data.com/api/v1/wishlists/221" \
-H "Accept: application/json"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/wishlists/221"
);
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/221"
);
const wishlist = (await res.json()) as Wishlist;
Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/wishlists/221"
)
wishlist = res.json()
Response
{
"id": 221,
"userId": 231,
"name": "Saved for Later",
"isPublic": false,
"productIds": [
130,
121,
57,
146,
175,
198
],
"createdAt": "2024-06-20T15:25:29.100Z",
"updatedAt": "2024-08-11T12:08:34.510Z"
}