Client for approximated.app written in TypeScript
npm:
npm install approximated-client
yarn:
yarn add approximated-client
import { ApproximatedClient } from "approximated-client";
const client = new ApproximatedClient({
apiKey: "your-api-key", // Your approximated API key
});
client.createVirtualHost({
incoming_address: "acustomdomain.com",
target_address: "myapp.com",
})
.then((res) => {
console.log(res);
})
.catch((err) => {
console.error(err);
});