Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 590 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 590 Bytes

approximated-client

Client for approximated.app written in TypeScript

Installation

npm:

npm install approximated-client

yarn:

yarn add approximated-client

Usage

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);
  });