mail-gw-api-wrapper
v1.0.1
Published
Wrapper for mail.gw API
Downloads
8
Readme
Mail gw
Node.js wrapper for https://mail.gw/ API
Installation
NPM
npm i mail-gw-api-wrapper
Domain
List Domains
mail.domains((result) => {
console.log(result);
})
Get Domain
mail.domain("domain id", (result) => {
console.log(result);
})
Account
Create Account
mail.create("[email protected]", "password", (result) => {
console.log(result);
});
Login
mail.login("[email protected]", "password", (result) => {
console.log(result);
})
Logout
mail.logout((result) => {
console.log(result);
})
Get Account Data
mailjs.me((result) => {
console.log(result);
})
Message
List messages
mailjs.messages((result) => {
console.log(result);
})
Read a message
mailjs.message("message id", (result) => {
console.log(result);
})
Delete a message
mailjs.deleteMessage("message id", (result) => {
console.log(result);
})