1.1.2 • Published 12 months ago

@gettestmail/typescript-sdk v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

typescript-sdk

Typescript client for interacting with the GetTestMail API, which provides a simple way to create temporary email addresses and receive emails sent to them.

Installation

npm install @gettestmail/typescript-sdk

Compatibility

Works on Browser, Node.js and React Native!

Usage

To create a new GetTestMail API client, you need to instantiate the GetTestMail class with your API key. To get an API key, sign up for a free account.

import { GetTestMail } from "@gettestmail/typescript-sdk";

const testMail = new GetTestMail('YOUR_API_KEY')

Create a new email address

const mailBox = await testMail.createNew()

Wait for an email to be received

const { message } = await testMail.waitForMessage(mailBox.id)
1.1.1

1 year ago

1.1.0

1 year ago

1.1.2

12 months ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago