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

bitExpert/testiat-api-client-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.