だから私はTwit https://github.com/ttezel/twitをノードに使用しています
Twitter 1.1 API から OEMBED コードを取得したいのですが、うまくいきません。
twit.get('statuses/oembed', { id: 133640144317198338 }, function (err, data, response) {
console.log(data);
console.log(err);
})
したがって、未定義が返され続けているだけです。URLパターンは正しいようですが、なぜ機能しないのかわかりません。
ログに記録されるエラーは次のとおりです
{ [Error: Sorry, that page does not exist]
message: 'Sorry, that page does not exist',
statusCode: 404,
code: 34,
allErrors: [ { message: 'Sorry, that page does not exist', code: 34 } ],
twitterReply: '{"errors":[{"message":"Sorry, that page does not exist","code":34}]}' }
彫像やその他のほとんどすべてを取得できますが、oembed は機能しません。
どんなヘルプも素晴らしいでしょう
Twitter の OEMBED api へのリンクは次のとおりですhttps://api.twitter.com/1.1/statuses/oembed.json?id=240192632003911681