Entertainment
- userId
-
Myrtie Daniel @myrtie_daniel33
- name
- Entertainment
- categoryId
- Snacks & Confectionery
- amount
- 4102.01
- period
- quarterly
- spent
- 2681.03
- currency
- AUD
- startsAt
- 2024-05-29
- endsAt
- 2024-08-27
- createdAt
Overview
budgets / #44
Entertainment
#44
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/44" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/44" ); 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/44"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/44"
)
budget = res.json() Response
{
"id": 44,
"userId": 45,
"name": "Entertainment",
"categoryId": 31,
"amount": 4102.01,
"period": "quarterly",
"spent": 2681.03,
"currency": "AUD",
"startsAt": "2024-05-29",
"endsAt": "2024-08-27",
"createdAt": "2024-09-05T14:50:41.915Z"
}