node-red-contrib-line-messaging-api
Version:
Node-RED nodes for LINE Messaging API integration. Build LINE Bots easily with visual programming.
49 lines (44 loc) • 1.9 kB
HTML
<script>
RED.nodes.registerType('ReplyMessage',{
category: 'LINE',
color: '#01B301',
defaults: {
name: {value:""},
replyMessage:{value:""}
},
credentials: {
channelSecret: {type:"password", required:true},
channelAccessToken: {type:"password", required:true},
},
inputs:1,
outputs:0,
icon: "comment.png",
align: "right",
paletteLabel: 'Reply_old',
label: function () {
return this.name || 'ReplyMessage';
},
paletteLabel: "(old) Reply"
});
</script>
<script type="text/x-red" data-template-name="ReplyMessage">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> <span data-i18n="common.label.name">Name</span></label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-channelSecret"><i class="icon-tag"></i> <span data-i18n="lineConfig.label.channelSecret">Secret</span></label>
<input type="password" id="node-input-channelSecret" placeholder="ChannelSecret">
</div>
<div class="form-row">
<label for="node-input-channelAccessToken"><i class="icon-tag"></i> <span data-i18n="lineConfig.label.channelAccessToken">AccessToken</span></label>
<input type="password" id="node-input-channelAccessToken" placeholder="ChannelAccessToken">
</div>
<div class="form-row">
<label for="node-input-replyMessage"><i class="icon-tag"></i> <span data-i18n="reply.label.message">ReplyMessage</span></label>
<input type="text" id="node-input-replyMessage" placeholder="static text message here">
</div>
</script>
<script type="text/x-red" data-help-name="ReplyMessage">
<p>Sends reply messages to LINE users using reply tokens.</p>
</script>