@testmo/testmo-api

2.0.3 • Public • Published

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.
contact@testmo.com
www.testmo.com

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @testmo/testmo-api

Weekly Downloads

43,427

Version

2.0.3

License

none

Unpacked Size

717 kB

Total Files

87

Last publish

Collaborators

  • jimmy.phomphaksavanh
  • garciamarco
  • testmoapp
  • dennisgrck