function fetchTwitterUserDetails(qid, username) {
    let target = _wikidata[qid];
    let twitterAPI = twitterAPIs[_twitterAPIIndex];

    return twitterAPI
        .get('users/show', { screen_name: username })
        .then(user => {
            target.logos.twitter = user.profile_image_url_https.replace('_normal', '_bigger');
        })
        .catch(e => {
            let msg = `Error: Twitter username @${username} for ${qid}: ` + JSON.stringify(e);
            _errors.push(msg);
            console.error(colors.red(msg));
        });
}
function fetchTwitterUserDetails(qid, username) {
    let target = _wikidata[qid];
    let twitterAPI = twitterAPIs[_twitterAPIIndex];

    return twitterAPI
        .get('users/show', { screen_name: username })
        .then(user => {
            target.logos.twitter = user.profile_image_url_https.replace('_normal', '_bigger');
        })
        .catch(e => {
            let msg = `Error: Twitter username @${username} for ${qid}: ` + JSON.stringify(e);
            _errors.push(msg);
            console.error(colors.red(msg));
        });
}
function fetchTwitterUserDetails ( qid , username ) { let target = _wikidata [ qid ] ; let twitterAPI = twitterAPIs [ _twitterAPIIndex ] ; return twitterAPI . get ( 'users/show' , { screen_name : username } ) . then ( user => { target . logos . twitter = user . profile_image_url_https . replace ( '_normal' , '_bigger' ) ; } ) . catch ( e => { let msg = ` ${ username } ${ qid } ` + JSON . stringify ( e ) ; _errors . push ( msg ) ; console . error ( colors . red ( msg ) ) ; } ) ; }
https://developer.twitter.com/en/docs/accounts-and-users/user-profile-images-and-banners.html https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-show
https : // developer . twitter . com / en / docs / accounts - and - users / user - profile - images - and - banners . html https : // developer . twitter . com / en / docs / accounts - and - users / follow - search - get - users / api - reference / get - users - show