Major update to twitter node for auth changes

This commit is contained in:
Nick O'Leary
2018-06-07 11:25:25 +01:00
parent e91f3704fc
commit 235831b464
6 changed files with 115 additions and 168 deletions

View File

@@ -9,7 +9,15 @@
"followers": "followed by",
"tweetslabel": "tweets",
"eventslabel": "events",
"clickhere": "Click here to authenticate with Twitter."
"create": "Create your own application at",
"copy-consumer": "From the 'Keys and Access Tokens' section, copy the Consumer Key and Secret",
"consumer_key": "Consumer Key",
"consumer_secret": "Consumer Secret",
"copy-accessToken": "Create a new 'Access Token' and copy the Access Token and Secret",
"access_key": "Access Token",
"access_secret": "Access Token Secret",
"enter-id":"Set your Twitter ID"
},
"placeholder": {
"for": "comma-separated words, @ids, #tags",
@@ -20,7 +28,7 @@
"follow": "all tweets from people I follow",
"user": "the tweets of specific users",
"direct": "your direct messages",
"events": "*deprecated* your twitter events"
"events": "your twitter events"
},
"tip": "Tip: Use commas without spaces between multiple search terms. Comma = OR, Space = AND.<br/>The Twitter API WILL NOT deliver 100% of all tweets.<br/>Tweets of who you follow will include their retweets and favourites.<br/><br/>Leave <b>for</b> blank to set using msg.payload.",
"status": {
@@ -39,12 +47,9 @@
"unexpectedend":"stream ended unexpectedly",
"invalidtag":"invalid tag property",
"missingcredentials":"missing twitter credentials",
"truncated":"truncated tweet greater than 140 characters",
"truncated":"truncated tweet greater than 280 characters",
"sendfail":"send tweet failed: __error__",
"nopayload":"no payload to tweet",
"oauthbroke":"something in twitter oauth broke.",
"oautherror": "<html><head></head><body><p>Something went wrong with the authentication process. The following error was returned:</p><p><b>__statusCode__</b>: __errorData__</p><p>One known cause of this type of failure is if the clock is wrong on system running Node-RED</p></body></html>",
"authorized": "<html><head></head><body><p>Authorised - you can close this window and return to Node-RED</p></body></html>"
"nopayload":"no payload to tweet"
}
}
}

View File

@@ -4,23 +4,38 @@
<li>認証したユーザがフォローしているアカウントからの全てのツイート</li>
<li>指定したユーザの全てのツイート</li>
<li>認証したユーザが受け取ったダイレクトメッセージ</li>
<li>認証したユーザに対するtwitterイベント</li>
</ul></p>
<p>複数の検索語を指定する場合スペース文字で<i>and</i>、コンマ「,」で<i>or</i>を表します検索語を<code>msg.payload</code><b>for</b></p>
<p><i>ツイート</i><code>msg.topic</code></p>
<p>ツイートの送信者の位置情報が既知の場合<code>msg.location</code></p>
<p>複数の検索語を指定する場合スペース文字で<i>and</i>,
<i>or</i><code>msg.payload</code>
<b>for</b></p>
<p><i>ツイート</i><code>msg.topic</code>
リーンネームを付加します</p>
<p>ツイートの送信者の位置情報が既知の場合
<code>msg.location</code></p>
<p>返却値がイベントの場合<code>msg.payload</code>にtwitterイベントを設定します。詳細については、<a href="https://dev.twitter.com/streaming/overview/messages-types#Events_event" target="_new">Twitterのドキュメント</a>を参照してください。</p>
<p>tweetオブジェクトを<code>msg.tweet</code>に設定します。詳細は<a href="https://dev.twitter.com/overview/api/tweets" target="_new">Twitterのドキュメント</a>を参照してください。</p>
<p>返却値がイベントの場合<code>msg.payload</code>twitter
詳細については
<a href="https://dev.twitter.com/streaming/overview/messages-types#Events_event"
target="_new">Twitterのドキュメント</a></p>
<p>tweetオブジェクトを<code>msg.tweet</code>
<a href="https://dev.twitter.com/overview/api/tweets"
target="_new">Twitterのドキュメント</a></p>
<p><b></b>: FireHouse@id#100%</p>
<p><b>:</b> Twitter API1515</p>
<p><b></b>: FireHouse@id#
シュタグに対する全ツイートを100%返すことは保証しません</p>
<p><b>:</b>
ジをフォローする場合Twitter APIのレート制限の対象となります
そのためフローのデプロイを15分のうちに複数回行うと制限に引っ
かかってノード実行がエラーとなるかもしれませんこのエラーは15分
経過すれば自動的に解消します</p>
</script>
<script type="text/x-red" data-help-name="twitter out">
<p>twitter outード<code>msg.payload</code></p>
<p>ダイレクトメッセージ(DM)を送るには"D {ユーザ名} {メッセージ}"形式のペイロードを用います</p>
<p><code>msg.media</code>Buffer</p>
<p><code>msg.params</code>:</p>
<p>ダイレクトメッセージ(DM)を送るには"D {ユーザ名} {メッセージ}"
形式のペイロードを用いま</p>
<p><code>msg.media</code>Buffer
を画像としてツイートに付け加えます</p>
<p><code>msg.params</code>:
を指定すると更新リクエストのパラメータとして用います</p>
</script>

View File

@@ -20,7 +20,7 @@
"follow": "フォローしているユーザの全てのツイート",
"user": "特定ユーザのツイート",
"direct": "ダイレクトメッセージ",
"events": "*deprecated* 自身のイベント"
"events": "自身のイベント"
},
"tip": "注釈: 複数の検索条件を指定する場合は、空白のないコンマで区切り入力してください。コンマはOR条件、空白はAND条件となります。<br/>Twitter APIは全てのツイートを取得できないことがあります。<br/>「フォローしているユーザの全てのツイート」には、リツイートやいいねが含まれます。<br/><br/>msg.payloadに検索条件を指定する場合は <b>「検索条件」</b> を空欄にしてください。",
"status": {
@@ -39,7 +39,7 @@
"unexpectedend": "ストリームが予期せず終了しました",
"invalidtag": "無効なタグプロパティ",
"missingcredentials": "Twitterが認証されていません",
"truncated": "140文字を超えるツイートが切り捨てられました",
"truncated": "280文字を超えるツイートが切り捨てられました",
"sendfail": "ツイートの投稿が失敗: __error__",
"nopayload": "ツイートするペイロードがありません",
"oauthbroke": "something in twitter oauth broke.",