Get follower count with Javascript/Jquery


#1

Hello,

So the company I work for has a few products/twitter accounts. They want to show on their respective sites the number of twitter followers each one has.

My questions are, will this be possible to do just in the front-end with jQuery?
Something like this:
$.getJSON(“https://api.twitter.com/1/users/show.json?callback=?&screen_name=XXXX&fields=followers”,
function(data) { console.log(data); });

And from what I read it looks like we will need an access token, but from the following list I’m not sure which one I need:
https://dev.twitter.com/docs/auth/obtaining-access-tokens

any help will be appreciated! thanks
Joel