Back to School
- userId
-
Melba Collier @melba.collier
- name
- Back to School
- isPublic
- false
- productIds
-
[ 18, 149, 109, 42, 150, 166, 77, 91, 153, 122, 88 ] - createdAt
- updatedAt
Overview
wishlists / #20
[
18,
149,
109,
42,
150,
166,
77,
91,
153,
122,
88
]
Back to School
#20
Request
curl example
curl -sS \ "https://example-data.com/api/v1/wishlists/20" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/wishlists/20" ); 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/20"
);
const wishlist = (await res.json()) as Wishlist; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/wishlists/20"
)
wishlist = res.json() Response
{
"id": 20,
"userId": 19,
"name": "Back to School",
"isPublic": false,
"productIds": [
18,
149,
109,
42,
150,
166,
77,
91,
153,
122,
88
],
"createdAt": "2024-10-09T06:08:02.508Z",
"updatedAt": "2025-01-07T03:14:36.837Z"
}