I just want to validate that a Twitter user exists. My code is returning 401 Unauthorised with this
$("#getUsr").click(
function()
{
var FindUser = $('#frmTwitter').val();
$.getJSON(
'http://api.twitter.com/1/users/' + FindUser + '.json?callback=?',
function(json) {
console.log(json);
}
);
}
);
what am I doing wrong?
Where did you get that URI from?
Use instead:
See API doc on users/show