node-red-contrib-wwsNodes 0.4.2

Draft of useful nodes for Watson Work Services

npm install node-red-contrib-wwsNodes

Set of useful nodes for Watson Work Services for Node-RED

List of nodes

wwsApplications (Configuration Node)

Specify AppId and AppSecret of your application for Watson Workplace (from https://workspace.ibm.com/developer/apps) and it will retrieve token for subsequent calls and spaces in which it has been added. This configuration node can be reused across multiple WWS nodes

wwsSend

Send a message to one or all spaces Choose to send the incoming payload in all spaces or choose one space in the list It uses :

  • msg.payload : text message
  • msg.color : color of the border
  • msg.title : title of the message
  • msg.name : sender of the message
  • msg.avatar : url of the picture of the sender
  • msg.spaceId : Id of the space to send the message to (if set, it overides the UI choices)

wwsIn

Receive a message from Watson Work Services Manage the Webhook subscription and the messages reception

wwsGraphQL

A node to send a graphQL request to Watson Work Services< It uses :

- msg.graphQLQuery : GraphQL Query (if set, it overides the UI query). Ex. : query getSpaceId{spaces(first:5){items{id title}}}
- msg.graphQLResult : Result of the GraphQL Query

Other msg parts are left unchanged

Usage

To be used with Node-RED

Developing

Under development

Node Info

Version: 0.4.2
Updated 1 month, 2 weeks ago
License: IPL-1.0

Downloads

18 in the last day
107 in the last week
251 in the last month

Nodes

  • wwsApplications
  • wwsIn
  • wwsGraphQL

Keywords

  • wws
  • node-red

Maintainers

  • coccobill
  • fdescollonges