saxenaritank
saxenaritank
NNovu
Created by saxenaritank on 10/5/2023 in #💬│support
Facing issue with Slack Integration
Hi tried and i am not getting any error but i am also not getting any message from novu to my Slack export const Slack = async (Msg, res) => { try { const novu = new Novu(NOVU_API_KEY); await novu.subscribers.identify('6677', { firstName: 'testname', }); const provider = new SlackProvider({ applicationId: process.env.slack_app_id, clientID: process.env.slack_client_id, secretKey: process.env.slack_client_secret, }); const trigger = novu.trigger('slack-chat-demo', { to: { subscriberId: '5566' }, payload: { chatMsg: 'working fine' } }); res.status(200).json(circularJson.stringify(trigger)); return res.status; } catch (error) { res.status(500).json(circularJson.stringify({ message: error.message })) } }
31 replies