import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.regions.fetch({
regionId: "reg_GMy1DbYLqN50m",
});
console.log(result);
}
run();{
"data": {
"id": "loc_WVQJDMQlDRbyE",
"type": "regions",
"attributes": {
"name": "Durgan-Wunsch",
"slug": "durgan-wunsch",
"facility": "Durgan-Wunsch",
"country": {
"name": "Kreiger-Muller",
"slug": "kreiger-muller"
},
"type": "core"
}
},
"meta": {}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.regions.fetch({
regionId: "reg_GMy1DbYLqN50m",
});
console.log(result);
}
run();{
"data": {
"id": "loc_WVQJDMQlDRbyE",
"type": "regions",
"attributes": {
"name": "Durgan-Wunsch",
"slug": "durgan-wunsch",
"facility": "Durgan-Wunsch",
"country": {
"name": "Kreiger-Muller",
"slug": "kreiger-muller"
},
"type": "core"
}
},
"meta": {}
}Was this page helpful?