Back to School
- userId
-
Cindy Barrows @cindy_barrows20
- name
- Back to School
- isPublic
- true
- productIds
-
[ 11, 160, 146, 100, 40, 15, 144, 147, 119, 171, 43 ] - createdAt
- updatedAt
Overview
wishlists / #158
[
11,
160,
146,
100,
40,
15,
144,
147,
119,
171,
43
]
Back to School
#158
Request
curl example
curl -sS \
"https://example-data.com/api/v1/wishlists/158" \
-H "Accept: application/json"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/wishlists/158"
);
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/158"
);
const wishlist = (await res.json()) as Wishlist;
Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/wishlists/158"
)
wishlist = res.json()
Response
{
"id": 158,
"userId": 165,
"name": "Back to School",
"isPublic": true,
"productIds": [
11,
160,
146,
100,
40,
15,
144,
147,
119,
171,
43
],
"createdAt": "2024-11-09T03:25:59.487Z",
"updatedAt": "2025-02-28T02:48:08.002Z"
}