japandotorg / videolinkapi

2 stars 2 forks source link

Error: twitter API error #6

Open vt107 opened 1 year ago

vt107 commented 1 year ago

Hi japandotorg,

I've cloned the newest code from github, but I got the following error when trying to get info from Twitter video:

Error:twitter API error

I've checked deeper and the response message is

{"errors":[{"message":"Sorry, that page does not exist","code":34}]}

same for other videos. Could you please check it?

vt107 commented 1 year ago

My example code

const link = "https://twitter.com/i/status/1569798267365457920";
(async () => {
    const videoUrlLink = require('videolinkapi');

    videoUrlLink.twitter.getInfo(link, {}, (error, info) => {
        if (error) {
            console.error(error);
        } else {
            console.log(info.full_text);
            console.log(info.variants);
        }
    });
})();