hubdot

The official Node.js module for interacting with the hubdot API.

Usage no npm install needed!

<script type="module">
  import hubdot from 'https://cdn.skypack.dev/hubdot';
</script>

README

hubdot

npm Version npm Downloads

Table of contents

About

hubdot is the official Node.js module for interacting with the hubdot API.

Installation

Use the package manager npm to install hubdot:

npm install hubdot

Example usage

const hubdot = require("hubdot");
const api = new hubdot({
    "guildId": "1234567890",
    "apiToken": "abcDeFgHijKlMnOpQrSUvWxYz"
});

api.fetchUser("904239813299").then((user) => {
    if (user.hasLicense) {
        console.log("The user owns hubdot!");
    } else {
        console.log("The user does not own hubdot!");
    }
});

Links

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.