1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Use words and URL in new Twitter portal (#498)

This commit is contained in:
Kazuhito Yokoi 2018-10-24 20:31:14 +09:00 committed by Dave Conway-Jones
parent f97a59b3e3
commit 425f5c151f
2 changed files with 23 additions and 24 deletions

View File

@ -5,7 +5,7 @@
<i class="fa fa-at"></i> <input type="text" id="node-config-input-screen_name"> <i class="fa fa-at"></i> <input type="text" id="node-config-input-screen_name">
</div> </div>
<div class="form-row"> <div class="form-row">
<p style="margin-top: 30px;"><b>1.</b> <span data-i18n="twitter.label.create"></span> <a href="https://apps.twitter.com/" target="_blank" style="text-decoration:underline;">apps.twitter.com</a></p> <p style="margin-top: 30px;"><b>1.</b> <span data-i18n="twitter.label.create"></span> <a href="https://developer.twitter.com/en/apps" target="_blank" style="text-decoration:underline;">developer.twitter.com/en/apps</a></p>
</div> </div>
<div class="form-row"> <div class="form-row">
<p style="margin-top: 30px;"><b>2.</b> <span data-i18n="twitter.label.copy-consumer"></span></p> <p style="margin-top: 30px;"><b>2.</b> <span data-i18n="twitter.label.copy-consumer"></span></p>
@ -128,7 +128,7 @@
<dd>location information associated with the tweet, if known</dd> <dd>location information associated with the tweet, if known</dd>
</dl> </dl>
<h3>Details</h3> <h3>Details</h3>
<p>When searching for multiple terms, use a space for <i>and</i> and comma `,` for <i>or</i>. <p>When searching for multiple terms, use a space for <i>and</i> and comma `,` for <i>or</i>.</p>
<p>The full tweet object is documented <a href="https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/tweet-object" target="_new">here</a>.</p> <p>The full tweet object is documented <a href="https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/tweet-object" target="_new">here</a>.</p>
<p><b>Note:</b> this node is subject to the rate limiting restrictions of the Twitter <p><b>Note:</b> this node is subject to the rate limiting restrictions of the Twitter
API. It polls the API once a minute for updates. If you deploy frequently you may API. It polls the API once a minute for updates. If you deploy frequently you may

View File

@ -1,7 +1,7 @@
{ {
"twitter": { "twitter": {
"label": { "label": {
"twitter-id":"Twitter ID", "twitter-id": "Twitter ID",
"search": "Search", "search": "Search",
"for": "for", "for": "for",
"user": "User", "user": "User",
@ -10,14 +10,13 @@
"tweetslabel": "tweets", "tweetslabel": "tweets",
"eventslabel": "events", "eventslabel": "events",
"create": "Create your own application at", "create": "Create your own application at",
"copy-consumer": "From the 'Keys and Access Tokens' section, copy the Consumer Key and Secret", "copy-consumer": "From the 'Keys and tokens' section, copy the Consumer API keys",
"consumer_key": "Consumer Key", "consumer_key": "API key",
"consumer_secret": "Consumer Secret", "consumer_secret": "API secret key",
"copy-accessToken": "Create a new 'Access Token' and copy the Access Token and Secret", "copy-accessToken": "Create a new 'Access token & access token secret' and copy them",
"access_key": "Access Token", "access_key": "Access token",
"access_secret": "Access Token Secret", "access_secret": "Access token secret",
"enter-id":"Set your Twitter ID" "enter-id": "Set your Twitter ID"
}, },
"placeholder": { "placeholder": {
"for": "comma-separated words, @ids, #tags", "for": "comma-separated words, @ids, #tags",
@ -34,22 +33,22 @@
"status": { "status": {
"using-geo": "Using geo location: __location__", "using-geo": "Using geo location: __location__",
"tweeting": "tweeting", "tweeting": "tweeting",
"failed":"failed" "failed": "failed"
}, },
"warn": { "warn": {
"nousers":"User option selected but no users specified", "nousers": "User option selected but no users specified",
"waiting":"Waiting for search term" "waiting": "Waiting for search term"
}, },
"errors": { "errors": {
"ratelimit":"rate limit hit", "ratelimit": "rate limit hit",
"limitrate":"limiting rate", "limitrate": "limiting rate",
"streamerror":"stream error: __error__ (__rc__)", "streamerror": "stream error: __error__ (__rc__)",
"unexpectedend":"stream ended unexpectedly", "unexpectedend": "stream ended unexpectedly",
"invalidtag":"invalid tag property", "invalidtag": "invalid tag property",
"missingcredentials":"missing twitter credentials", "missingcredentials": "missing twitter credentials",
"truncated":"truncated tweet greater than 280 characters", "truncated": "truncated tweet greater than 280 characters",
"sendfail":"send tweet failed: __error__", "sendfail": "send tweet failed: __error__",
"nopayload":"no payload to tweet" "nopayload": "no payload to tweet"
} }
} }
} }