Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 522 Bytes

USAGE.md

File metadata and controls

37 lines (26 loc) · 522 Bytes
import { Dub } from "dub";

const dub = new Dub({
  token: "DUB_API_KEY",
});

async function run() {
  const result = await dub.links.create();

  // Handle the result
  console.log(result);
}

run();
import { Dub } from "dub";

const dub = new Dub({
  token: "DUB_API_KEY",
});

async function run() {
  const result = await dub.links.upsert();

  // Handle the result
  console.log(result);
}

run();