Gifts
- userId
-
Karlee Hudson-Turner @karlee.hudson-turner88
- name
- Gifts
- categoryId
- Electronics
- amount
- 4681.78
- period
- weekly
- spent
- 2771.63
- currency
- USD
- startsAt
- 2024-08-01
- endsAt
- 2024-08-08
- createdAt
Overview
budgets / #32
Gifts
#32
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/32" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/32" ); const budget = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/budgets.d.ts https://example-data.com/types/budgets.d.ts
import type { Budget } from "./types/budgets";
const res = await fetch(
"https://example-data.com/api/v1/budgets/32"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/32"
)
budget = res.json() Response
{
"id": 32,
"userId": 36,
"name": "Gifts",
"categoryId": 1,
"amount": 4681.78,
"period": "weekly",
"spent": 2771.63,
"currency": "USD",
"startsAt": "2024-08-01",
"endsAt": "2024-08-08",
"createdAt": "2024-09-03T22:00:01.915Z"
}