This package provides bindings to access Testmo's REST API from JavaScript projects. The package is based on Testmo's REST API spec.
Simply install the package into your project with NPM:
npm install @testmo/testmo-api
var testmo = require('@testmo/testmo-api');
// Configure API client
const client = new testmo.ApiClient();
client.basePath = process.env.TESTMO_HOST;
client.authentications['bearerAuth'].accessToken = process.env.TESTMO_TOKEN;
// Request current user
const api = new testmo.UserApi(client);
const user = await api.getCurrentUser();
console.log(user);
The API binding is based on Testmo's REST API. Please refer to the Testmo API reference documentation to learn more:
Copyright (c) Testmo GmbH (Berlin, Germany)
All rights reserved.
contact@testmo.com
www.testmo.com