1.0.2 • Published 4 years ago

trident-api-client v1.0.2

Weekly downloads
13
License
Proprietary
Repository
-
Last release
4 years ago

Trident Client API

To install enter:

npm install trident-api-client

A version is available for web browsers you can copy from node_modules/trident-api/build-web/

NodeJS example

You can simply do:

const trident = require ("trident-api-client");

async function example ()
{
    let client = new TridentApi.BrowserApiApiKeys ({
            "apiKey": "API_KEY_GOES_HERE"
        });

    let browsers = await client.getAllBrowsers (); // List of browsers will be here.

    for (let iIdx = 0; iIdx < browsers.length; iIdx++)
    {
        const browser = browsers[iIdx];

        console.log (browser);
    }
}

example ();

Importing into a TypeScript project

You can import Trident-api into your project by doing:

import * as trident from "trident-api";

Then the example above will work.

API Reference

For the full reference visit https://trident.fogchaininc.com/api