This package has been deprecated

Author message:

this package has been deprecated

ingwe

1.1.1 • Public • Published

####Ingwe.io

var ingwe = require("ingwe");

ingwe.email({
    template : "hackernews",
    subject: "Greetings #{name}",
    params : { "name" : "Johnatthan" }
}).to("user@gmail.com").from("f1@company.io").done(function(err,ing){
    if(err) {
        console.log("err");
    }
    else console.log(ing);
});

ingwe.email({
    template : "hackernews",
    subject: "Greetings #{name}",
    params : { "name" : "Sean" }
}).future({
    when : "in 1 day", // send everyday
    dieout : 60, // for next 60 days
    start : "in 2 hours", // start job in 2 hours
    now : false // dont send now
}).to("user@gmail.com").from("f1@company.io").done(function(err,ing){
    console.log(ing);
});

#####Methods ingwe.delete

ingwe.email.to.from.future.done
ingwe.email.to.from.done

ingwe.log.to.from.future.done
ingwe.log.to.from.done

ingwe.sms.to.from.future.done
ingwe.sms.to.from.done

ingwe.webhook.to.from.future.done
ingwe.webhook.to.from.done

Email/Log/SMS/Webhook accepts following parameters
    template 
        // template name on ingwe
    subject 
        // subject 
    params 
        // parameters in subject and template
    api 
        // API in har1.2 format will be called and variables will be replaced in template

future accepts following parameters
    when
        // array or string value, support chrono format
    dieout
        // how many times job should run
    start
        // after how much time job should start
    now
        // is sending now required

Readme

Keywords

none

Package Sidebar

Install

npm i ingwe

Weekly Downloads

1

Version

1.1.1

License

ISC

Unpacked Size

7.08 kB

Total Files

4

Last publish

Collaborators

  • ingwe