Activity #239
User #140 favorited Book #22
1/4/2025, 11:03:50 PM
Overview
book-favs / #239
User #140 favorited Book #22
1/4/2025, 11:03:50 PM
User #140 favorited Book #22
1/4/2025, 11:03:50 PM
View recordUser #140 favorited Book #22 · 1/4/2025, 11:03:50 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/book-favs/239" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/book-favs/239" ); 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/239"
);
const bookFav = (await res.json()) as BookFav; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/book-favs/239"
)
book_fav = res.json() Response
{
"id": 239,
"userId": 140,
"bookId": 22,
"savedAt": "2025-01-04T23:03:50.311Z"
}