api-builder-plugin-ms-teams-webhook
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "api-builder-plugin-ms-teams-webhook", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A plugin for Axway API Builder", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -60,4 +60,25 @@ const axios = require('axios'); | ||
async function sendMsgFull(params, options) { | ||
const { url, card } = params; | ||
const { logger } = options; | ||
if (!url) { | ||
throw new Error('Missing required parameter: url'); | ||
} | ||
if (!card) { | ||
throw new Error('Missing required parameter: title'); | ||
} | ||
await axios({ | ||
method: 'post', | ||
url: url, | ||
data: card | ||
}); | ||
return; | ||
} | ||
module.exports = { | ||
sendMsg | ||
sendMsg, | ||
sendMsgFull | ||
}; |
Sorry, the diff of this file is not supported yet
85898
92