We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82b1218 commit 5dc9c54Copy full SHA for 5dc9c54
packages/metascraper-media-provider/src/get-media/twitter-info.js
@@ -28,6 +28,7 @@ const getGuestToken = async url => {
28
const { body } = await got.post(
29
'https://api.twitter.com/1.1/guest/activate.json',
30
{
31
+ retry: false,
32
headers: { Authorization: TWITTER_BEARER_TOKEN, Referer: url },
33
json: true
34
}
@@ -40,6 +41,7 @@ const getTwitterInfo = ({ getToken }) => async url => {
40
41
const apiUrl = `https://api.twitter.com/2/timeline/conversation/${tweetId}.json?tweet_mode=extended`
42
const guestToken = await getToken(url)
43
const { body } = await got(apiUrl, {
44
45
json: true,
46
headers: {
47
authorization: TWITTER_BEARER_TOKEN,
0 commit comments