Activity #271
User #161 favorited Book #72
1/18/2025, 6:12:06 PM
Overview
book-favs / #271
User #161 favorited Book #72
1/18/2025, 6:12:06 PM
User #161 favorited Book #72
1/18/2025, 6:12:06 PM
View recordUser #161 favorited Book #72 · 1/18/2025, 6:12:06 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/book-favs/271" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/book-favs/271" ); const bookFav = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/book-favs.d.ts https://example-data.com/types/book-favs.d.ts
import type { BookFav } from "./types/book-favs";
const res = await fetch(
"https://example-data.com/api/v1/book-favs/271"
);
const bookFav = (await res.json()) as BookFav; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/book-favs/271"
)
book_fav = res.json() Response
{
"id": 271,
"userId": 161,
"bookId": 72,
"savedAt": "2025-01-18T18:12:06.342Z"
}