Post to Twitter

Hi guys.

Having some issues integrating airtable with Twitter. I know there is already something set up in Airtable to post Tweets but I don’t want to be limited with the attachment file sizes that are imposed.

Can anyone shed some light on why this fetch call can’t authenticate please.

var myHeaders = new Headers();

myHeaders.append(“Accept”, “/”);

myHeaders.append(“Connection”, “close”);

myHeaders.append(“Cookie”, “guest_id=v1%3A163524415819855112; personalization_id=“v1_enOaDCeivWtb8VsMrM7chg==”; lang=en”);

myHeaders.append(“User-Agent”, “OAuth gem v0.4.4”);

myHeaders.append(“Content-Type”, “application/x-www-form-urlencoded”);

myHeaders.append(“Authorization”, myStr);

var requestOptions = {

method: ‘POST’,

headers: myHeaders,

};

fetch(“https://api.twitter.com/1.1/statuses/update.json?status=Hello%20Ladies%20%2B%20Gentlemen%2C%20a%20signed%20OAuth%20request!”, requestOptions)

.then(response => response.json())

.then(responseBody =>{

    console.log(responseBody);

})

.catch(error => console.log('error', error));

Really appreciate any help :slight_smile: