Gift Ideas
- userId
-
Sarah West @sarah.west
- name
- Gift Ideas
- isPublic
- false
- productIds
-
[ 140, 55, 116, 94 ] - createdAt
- updatedAt
Overview
wishlists / #209
[
140,
55,
116,
94
]
Gift Ideas
#209
Request
curl example
curl -sS \
"https://example-data.com/api/v1/wishlists/209" \
-H "Accept: application/json"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/wishlists/209"
);
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/209"
);
const wishlist = (await res.json()) as Wishlist;
Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/wishlists/209"
)
wishlist = res.json()
Response
{
"id": 209,
"userId": 217,
"name": "Gift Ideas",
"isPublic": false,
"productIds": [
140,
55,
116,
94
],
"createdAt": "2024-08-01T10:11:29.978Z",
"updatedAt": "2024-08-03T14:52:43.801Z"
}