mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Update 27-twitter.html
Added bearer token to support API V2.0
This commit is contained in:
parent
6aea983855
commit
3c83afdecc
@ -29,6 +29,10 @@
|
|||||||
<label style="margin-left: 20px;" for="node-config-input-access_token_secret"><span data-i18n="twitter.label.access_secret"></span></label>
|
<label style="margin-left: 20px;" for="node-config-input-access_token_secret"><span data-i18n="twitter.label.access_secret"></span></label>
|
||||||
<input type="password" id="node-config-input-access_token_secret">
|
<input type="password" id="node-config-input-access_token_secret">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-row">
|
||||||
|
<label style="margin-left: 20px;" for="node-config-input-access_token_bearer"><span data-i18n="twitter.label.access_bearer"></span></label>
|
||||||
|
<input type="password" id="node-config-input-access_token_bearer">
|
||||||
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -45,7 +49,8 @@
|
|||||||
consumer_key: { type: "password"},
|
consumer_key: { type: "password"},
|
||||||
consumer_secret: { type: "password" },
|
consumer_secret: { type: "password" },
|
||||||
access_token: {type: "password"},
|
access_token: {type: "password"},
|
||||||
access_token_secret: {type:"password"}
|
access_token_secret: {type:"password"},
|
||||||
|
access_token_bearer: {type:"password"}
|
||||||
},
|
},
|
||||||
label: function() {
|
label: function() {
|
||||||
if (this.screen_name) {
|
if (this.screen_name) {
|
||||||
@ -60,7 +65,8 @@
|
|||||||
"consumer_key",
|
"consumer_key",
|
||||||
"consumer_secret",
|
"consumer_secret",
|
||||||
"access_token",
|
"access_token",
|
||||||
"access_token_secret"
|
"access_token_secret",
|
||||||
|
"access_token_bearer",
|
||||||
];
|
];
|
||||||
// Just in case any whitespace has crept in with the copy-paste of the fields
|
// Just in case any whitespace has crept in with the copy-paste of the fields
|
||||||
trimFields.forEach(function(field) {
|
trimFields.forEach(function(field) {
|
||||||
@ -102,7 +108,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('twitter in',{
|
RED.nodes.registerType('twitter in',{
|
||||||
category: 'social-input',
|
category: 'social-input',
|
||||||
color:"#C0DEED",
|
color:"#3FADB5",
|
||||||
defaults: {
|
defaults: {
|
||||||
twitter: {type:"twitter-credentials",required:true},
|
twitter: {type:"twitter-credentials",required:true},
|
||||||
tags: {value:""},
|
tags: {value:""},
|
||||||
@ -181,7 +187,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('twitter out',{
|
RED.nodes.registerType('twitter out',{
|
||||||
category: 'social-output',
|
category: 'social-output',
|
||||||
color:"#C0DEED",
|
color:"#3FADB5",
|
||||||
defaults: {
|
defaults: {
|
||||||
twitter: {type:"twitter-credentials",required:true},
|
twitter: {type:"twitter-credentials",required:true},
|
||||||
name: {value:"Tweet"}
|
name: {value:"Tweet"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user