Holiday Gifts
- userId
-
Conner Bernhard @conner.bernhard33
- name
- Holiday Gifts
- isPublic
- false
- productIds
-
[ 66, 156 ] - createdAt
- updatedAt
Overview
wishlists / #5
[
66,
156
]
Holiday Gifts
#5
Request
curl example
curl -sS \ "https://example-data.com/api/v1/wishlists/5" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/wishlists/5" ); 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/5"
);
const wishlist = (await res.json()) as Wishlist; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/wishlists/5"
)
wishlist = res.json() Response
{
"id": 5,
"userId": 3,
"name": "Holiday Gifts",
"isPublic": false,
"productIds": [
66,
156
],
"createdAt": "2024-07-13T16:14:38.709Z",
"updatedAt": "2024-07-21T17:49:59.703Z"
}