Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "alert" : "You have a request for payment."}
- 400 {
- "code": "FPWSE0004E",
- "message": "Bad Request - Invalid JSON."
- }
- var message = {
- alert : "You have a request for payment.",
- url : "payment_id"
- };
- var options = {
- host : 'mobile.ng.bluemix.net',
- port : 443,
- path : '/imfpush/v1/apps/'+appId +'/devices/'+deviceId,
- method : 'PUT',
- headers : headers,
- data: JSON.stringify(message)
- };
- var reqPost = https.request(options, function(res) {
- res.on('data', function(d) {
- console.info('PUT result:n');
- process.stdout.write(d);
- console.info('nPUTcompleted');
- });
- });
- reqPost.end();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement