UNPKG

monday-api-client

Version:

Easy to use client for talking to the Monday.com API.

13 lines (12 loc) 450 B
const mondaySdk = require('monday-sdk-js'), monday = mondaySdk(), graphQlNotification = require('../graphQL/notification'); export const notification = { sendProject : ({userId, boardId}, text, token) => { const query = graphQlNotification.createProjectQuery(userId, boardId, text); monday.setToken(token); return monday.api(query).catch(error => { console.log(`Error: ${error}`); }); }, }