Gift Ideas
- userId
-
Jonas Rath @jonas.rath
- name
- Gift Ideas
- isPublic
- true
- productIds
-
[ 92, 8 ] - createdAt
- updatedAt
Overview
wishlists / #135
[
92,
8
]
Gift Ideas
#135
Request
curl example
curl -sS \
"https://example-data.com/api/v1/wishlists/135" \
-H "Accept: application/json"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/wishlists/135"
);
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/135"
);
const wishlist = (await res.json()) as Wishlist;
Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/wishlists/135"
)
wishlist = res.json()
Response
{
"id": 135,
"userId": 138,
"name": "Gift Ideas",
"isPublic": true,
"productIds": [
92,
8
],
"createdAt": "2024-06-01T20:20:42.529Z",
"updatedAt": "2024-09-20T11:37:59.885Z"
}