Public
Edited
Jun 12, 2023
2 forks
Insert cell
Insert cell
Insert cell
apiKey = "60738df5-053c-47ce-96a2-81d3d7b8b3b2"
Insert cell
requestBody = ({
sampleTypeId: 1,
nuclideId: "1",
samplingDepthFrom: 0.5,
samplingDepthTo: 0.8,
samplingDateFrom: 2000,
samplingDateTo: 2015
})
Insert cell
// ref:
// - https://stackblitz.com/edit/node-wwqavu?file=index.js
// - https://observablehq.com/@mbostock/posting-with-fetch
d3.json("https://maris-uat.iaea.org/api/Search/getMeasurementData", {
body: JSON.stringify(JSON.stringify(requestBody)),
headers: { "content-type": "application/json", "x-api-key": apiKey },
method: "POST",
mode: "cors",
credentials: "include"
})
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more