Trident API client
npm install trident-api-clientTo install enter:
npm install trident-api-client
A version is available for web browsers you can copy from node_modules/trident-api/build-web/
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.