@testmo/testmo-api
v2.0.4
Published
Testmo REST API JavaScript binding
Downloads
268,117
Keywords
Readme
Testmo REST API JavaScript binding
This package provides bindings to access Testmo's REST API from JavaScript projects. The package is based on Testmo's REST API spec.
Installation
Simply install the package into your project with NPM:
npm install @testmo/testmo-api
Example
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);
Documentation
The API binding is based on Testmo's REST API. Please refer to the Testmo API reference documentation to learn more:
https://docs.testmo.com/
License
Copyright (c) Testmo GmbH (Berlin, Germany) All rights reserved. [email protected] www.testmo.com