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
const request = require('request'); | |
server.get('/fw',(req,res)=>{ | |
let query = req.query | |
if (query['hub.verify_token'] === '<yourverifytoken>') { | |
return res.end(query['hub.challenge']) | |
} | |
return res.end('Error, wrong validation token') | |
}) |
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
const nodemailer = require('nodemailer'); | |
const transporter = nodemailer.createTransport({ | |
host: 'smtp.zoho.com', | |
port: 465, | |
secure: true, //ssl | |
auth: { | |
user: '[email protected]', | |
pass: 'yourpassword' | |
} | |
}); |
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
{"lastUpload":"2017-11-07T08:21:44.537Z","extensionVersion":"v2.8.5"} |