npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

push_to_urbanairship

0.0.2 • Public • Published

pushToUrbanAirship

Mobile push notifications using UrbanAirship.

npm install push_to_urbanairship

Example:

var auth= {
        key: "app key",
        master:"app master key"
    },
    pushToUA = require('push_to_urbanairship')(auth),
    sampleToken= "your sample ios device_token";


pushToUA( {
    "audience" : {
        "device_token" : sampleToken
    },
    "notification" : {
        "alert" : "Hello - from vlad again - tell me if u get this plz2."
    },
    "device_types" : "all"
} , function(err, resp, body){
    console.log(body);
});

Keywords

none

install

npm i push_to_urbanairship

Downloadsweekly downloads

2

version

0.0.2

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability