@tulip/node-red-tulip-api
Version:
Node-RED nodes for sending data to the Tulip API
20 lines (17 loc) • 460 B
JavaScript
module.exports = function (RED) {
'use strict';
// Tulip API auth node
function TulipApiAuthNode(config) {
RED.nodes.createNode(this, config);
this.name = config.name;
this.protocol = config.protocol;
this.hostname = config.hostname;
this.port = config.port;
}
RED.nodes.registerType('tulip-api-auth', TulipApiAuthNode, {
credentials: {
apiKey: { type: 'text' },
apiSecret: { type: 'password' },
},
});
};