Created
January 30, 2020 15:17
-
-
Save AlexLakatos/beda78758bc51ebdea9c4cdc35eb92cc to your computer and use it in GitHub Desktop.
Receive SMS Webhook - Azure Function
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
module.exports = async function(context, req) { | |
const params = Object.assign(req.query, req.body); | |
if (params.text) { | |
context.log("SMS received", params); | |
} | |
context.res = {}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment