Back to School
- userId
-
Lacy Gusikowski @lacy.gusikowski
- name
- Back to School
- isPublic
- false
- productIds
-
[ 22, 13 ] - createdAt
- updatedAt
Overview
wishlists / #52
[
22,
13
]
Back to School
#52
Request
curl example
curl -sS \ "https://example-data.com/api/v1/wishlists/52" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/wishlists/52" ); 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/52"
);
const wishlist = (await res.json()) as Wishlist; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/wishlists/52"
)
wishlist = res.json() Response
{
"id": 52,
"userId": 47,
"name": "Back to School",
"isPublic": false,
"productIds": [
22,
13
],
"createdAt": "2024-10-28T20:30:31.441Z",
"updatedAt": "2024-12-14T18:34:20.231Z"
}