node-red-contrib-line-messaging-api
Version:
Node-RED nodes for LINE Messaging API integration. Build LINE Bots easily with visual programming.
46 lines (38 loc) • 1.65 kB
HTML
<script>
RED.nodes.registerType('BloadcastMessage',{
category: 'LINE',
color: '#01B301',
defaults: {
name: {value:""},
},
credentials: {
channelSecret:{value:"", type: "password", required:true},
channelAccessToken:{value:"", type: "password", required:true}
},
inputs: 1,
outputs: 1,
icon: "comment.png",
align: "right",
paletteLabel: 'Bloadcast',
label: function () {
return this.name || 'BloadcastMessage';
}
});
</script>
<script type="text/x-red" data-template-name="BloadcastMessage">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> <span data-i18n="bloadcast.label.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="bloadcast.label.channelSecret">チャンネルシークレット</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="bloadcast.label.channelAccessToken">チャンネルアクセストークン</span></label>
<input type="password" id="node-input-channelAccessToken" placeholder="ChannelAccessToken">
</div>
</script>
<script type="text/x-red" data-help-name="BloadcastMessage">
<p>Broadcasts messages to all LINE Bot friends.</p>
</script>