node-red-contrib-line-messaging-api
Version:
Node-RED nodes for LINE Messaging API integration. Build LINE Bots easily with visual programming.
50 lines (44 loc) • 2.02 kB
HTML
<script>
RED.nodes.registerType('PushMessage',{
category: 'LINE',
color: '#01B301',
defaults: {
name: {value:""},
},
credentials: {
channelSecret: {type:"password", required:true},
channelAccessToken: {type:"password", required:true},
targetId:{type:"password", required:true},
},
inputs: 1,
outputs: 0,
icon: "comment.png",
align: "right",
paletteLabel: 'Push_old',
label: function() {
return this.name || 'PushMessage';
}
});
</script>
<script type="text/x-red" data-template-name="PushMessage">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> <span data-i18n="push.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="push.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="push.label.channelAccessToken">チャンネルアクセストークン</span></label>
<input type="password" id="node-input-channelAccessToken" placeholder="ChannelAccessToken">
</div>
<div class="form-row">
<label for="node-input-targetId"><i class="icon-tag"></i> <span data-i18n="push.label.targetId">ユーザーIDまたはグループID</span></label>
<input type="text" id="node-input-targetId" placeholder="User Id or Group ID">
</div>
<p>This node is the old version, please consider using the New version.</p>
</script>
<script type="text/x-red" data-help-name="PushMessage">
<p>Send a push message by specifying the user ID or group ID.</p>
</script>