This project provides an interface to interact with the AntiBotMail API. Website: https://antibotmail.com/ Docs: https://docs.antibotmail.com/
To install the project, run the following command:
npm install antibotmail
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));
The AntiBotMail
class provides the following methods:
-
orderEmail(options: BuyOptions): Promise<BuyResponse>
: Orders an email. The options object should havemailcode
andquantity
properties. -
orderEmailSimple(options: BuyOptions): Promise<SimpleBuyResponse>
: Orders an email without additional information. The options object should havemailcode
andquantity
properties. -
getBalance(): Promise<BalanceResponse>
: Responds with the balance of the API Key. -
listenEmail(options: EmailListenerOptions): Promise<EmailListenerResponse>
: API interface to use theEmail Listener
feature. The API is unstable and might not work as expected, use IMAP instead.
This project is licensed under the MIT License.
I have neither created ABM nor am I in anyway associated with them.
If you'd like to contribute, please fork the repository. Pull requests are warmly welcome.