Typescript
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": "MacGyver-Tremblay", "slug": "macgyver-tremblay", "facility": "MacGyver-Tremblay", "country": { "name": "Breitenberg, Kirlin and Doyle", "slug": "breitenberg,-kirlin-and-doyle" }, "type": "core" } }, "meta": {} }
The region region_ID
Success
Show child attributes
Was this page helpful?