A simple client for the Dotlas REST API.
npm i @_dotlas/api
yarn add @_dotlas/api
import { Client } from "@_dotlas/api"
// Create a client with your API key
const client = Client("<your-api-key>")
// Create a fetcher for the specific endpoint
const fetcher = client
.path("/socio-demographics/stats/{city}")
.method("get")
.create()
// Call the fetcher
fetcher({ city: "New York" })
.then(res => res.json())
.then(res => {
console.log(res.data)
})