1.1.1 • Published 6 years ago

ingwe v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

####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
1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago