Skip to content
This repository has been archived by the owner on Sep 1, 2019. It is now read-only.

xrajishx/maildrop-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maildrop-api

Wrapper module around maildrop.cc API.

npm Travis Coverage Status dependencies Status devDependencies Status Greenkeeper badge Commitizen friendly semantic-release JavaScript Style Guide GitHub license

Installation

yarn add maildrop-api

Usage

const maildrop = require('maildrop-api');

const mailBox = 'john';
const emailId = 'ehFA9k';

// Get inbox
maildrop.getInbox(mailBox).then(emails => {
  console.log(emails);
});

// Get email
maildrop.getEmail(mailBox, emailId).then(email => {
  console.log(email);
});

// Delete email
maildrop.deleteEmail(mailBox, emailId).then(result => {
  console.log(result);
});

// Suggestion API
maildrop.suggestion().then(suggestion => {
  console.log(suggestion);
});

// Blocked API
maildrop.blocked().then(blocked => {
  console.log(blocked);
});

Development

Clone the project and install dependencies:

$ git clone https://github.com/xrajishx/maildrop-api.git
$ cd maildrop-api
$ yarn

Test

$ yarn test