I currently have a Google script that returns the number of followers for a given username, but I’m frequently going over the 150 rate limit. How do I change my code so it makes an authenticated request?
I know very little about coding/APIs and I would really appreciate some help. Here is the code:
{
function twitterfollowers(pageid) {
var jsondata = UrlFetchApp.fetch(“http://api.twitter.com/1/users/show.json?user_id=”+pageid);
var object = Utilities.jsonParse(jsondata.getContentText());
return object.followers_count;
}
}