Created
January 9, 2017 23:09
-
-
Save hdurdle/76693513d8d043c8fccb19750e4a5bc1 to your computer and use it in GitHub Desktop.
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 json = { | |
id: '1', | |
jsonrpc: '2.0', | |
method: 'GUI.ShowNotification', | |
params: { | |
title: 'title-test', | |
message: 'message-test' | |
} | |
} | |
request({ | |
url: 'http://tranquil:3005/jsonrpc', | |
method: 'POST', | |
json: json | |
}, function(error, response, body) { | |
if (error) { | |
console.log(error); | |
} else { | |
console.log(response.statusCode, body); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment