Need help with XMLHttpRequest


#1

hi, i am new in twitter api developing. I want to GET the followers of a determined person, the docs sat I need to do this

https://api.twitter.com/1.1/friends/list.json?cursor=-1&screen_name=twitterapi&skip_status=true&include_user_entities=false

in javascript it would be something like this:

var xhr = new XMLHttpRequest();
xhr.open(“GET”,“https://api.twitter.com/1.1/friends/list.json?cursor=-1&screen_name=twitterapi&skip_status=true&include_user_entities=false”, false);
xhr.send();

it didn’t work. I read a lot of documents about auth but i just do not understand how to put all of that in a sigle request. please i need help its my first time