Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (25 loc) · 916 Bytes

README.md

File metadata and controls

45 lines (25 loc) · 916 Bytes

testiat-api-client-node

This is the NodeJS API client for Testi@.

Installation

yarn add testiat-api-client-node
# or
npm install testiat-api-client-node

Usage

const Testiat = require('../index.js');
const testiatApiClient = new Testiat('yourapikey');

(async () => {
    const clientsList = await testiatApiClient.getAvailableClients();
    console.log(clientsList);
})();

Available methods

All methods return a Promise and are either resolved with the API response or rejected with an Error object when one of the required arguments was not set or of the correct type.

getAvailableClients

List the email clients that you can use.

getProjectStatus(id)

Gets the status of the given project ID.

startEmailTest(subject, html, clients)

Starts a new email test using the given subject, html string and array of email client IDs.