1
"Zapierによるコード"アクションでは、以下は機能しません。ZapierコードでTweetを作成するには
fetch('https://api.twitter.com/1.1/statuses/update.json?status=' +encodeURIComponent(textToTweet))
.then(function(res) {
return res.json();
})
.then(function(json) {
callback(null, json);
})
.catch(callback);
ただし、次のようになります。
errors:
message:
Bad Authentication data.
code:
215
どのような追加認証が必要ですか? Twitterアカウントは既にZapierに接続していますか、それとも問題ありませんか?
UPDATE:次のコードを以下のフィードバックあたりは今、私に89を与える:無効またはトークン
fetch('https://api.twitter.com/1.1/statuses/update.json?status=' +encodeURIComponent(textToTweet), {
headers: {
Authorization: 'Bearer ACCESS_TOKEN_BEGINSWITH_OWNERID'
}
})
.then...............
ありがとうございます。私はすべてを更新しましたが、次のコードは私に89を与えます:無効または期限切れのトークン 'fetch( 'https://api.twitter.com/1.1/statuses/update.json?status='+encodeURIComponent(textToTweet) { ヘッダー:{ \t許可: "ベアラMY_ACCESS_TOKEN_STARTING_WITH_OWNERID" } }) .then ......... ' – citizen