@andypiper Thanks for the reply.
$http({
method: 'GET',
url: 'https://api.twitter.com/1.1/friends/list.json?screen_name=%40name',
headers: {
Authorization: 'bearer AAAAAAAAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}
}).then(function (data) {
console.log(data);
});
this is my call.
But i am getting error on my browser as
XMLHttpRequest cannot load https://api.twitter.com/1.1/friends/list.json?screen_name=%name. Response for preflight has invalid HTTP status code 400.
Whats wrong with my code?
How can i make it run?