This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Statistical profiling result from v8.log, (9209 ticks, 10 unaccounted, 0 excluded). | |
[Unknown]: | |
ticks total nonlib name | |
10 0.1% | |
[Shared libraries]: | |
ticks total nonlib name | |
8589 93.3% 0.0% /usr/lib/system/libsystem_kernel.dylib | |
383 4.2% 0.0% /usr/local/bin/node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
var sendMessage = function(device, message){ | |
var restKey = '****'; | |
var appID = '****'; | |
request( | |
{ | |
method:'POST', | |
uri:'https://onesignal.com/api/v1/notifications', | |
headers: { |