Socket
Book a DemoInstallSign in
Socket

antibotmail

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

antibotmail

A Node.js module to interact with the AntiBotMail API

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

AntiBotMail

This project provides an interface to interact with the AntiBotMail API. Website: https://antibotmail.com/ Docs: https://docs.antibotmail.com/

Table of Contents

Installation

To install the project, run the following command:

npm install antibotmail

Usage

First, import the AntiBotMail module

import AntiBotMail from 'antibotmail';
// or
const AntiBotMail = require('antibotmail');

Then, create an instance of the class, passing your API key as a parameter to the constructor.

const antiBotMail = new AntiBotMail('your-api-key');

You can now use the instance to interact with the API. For example, to order an email:

const options = {
  mailcode: 'HOTMAIL_TEMP',
  quantity: 1
};

antiBotMail.orderEmail(options)
  .then(response => console.log(response))
  .catch(error => console.error(error));

API

The AntiBotMail class provides the following methods:

  • orderEmail(options: BuyOptions): Promise<BuyResponse>: Orders an email. The options object should have mailcode and quantity properties.

  • orderEmailSimple(options: BuyOptions): Promise<SimpleBuyResponse>: Orders an email without additional information. The options object should have mailcode and quantity properties.

  • getBalance(): Promise<BalanceResponse>: Responds with the balance of the API Key.

  • listenEmail(options: EmailListenerOptions): Promise<EmailListenerResponse>: API interface to use the Email Listener feature. The API is unstable and might not work as expected, use IMAP instead.

License

This project is licensed under the MIT License.

Disclaimer

I have neither created ABM nor am I in anyway associated with them.

Contributing

If you'd like to contribute, please fork the repository. Pull requests are warmly welcome.

Keywords

antibotmail

FAQs

Package last updated on 10 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.