Phil Sturgeon Rest Server API call using jquery?
===

I am trying to access Phil Sturgeon's Rest API (https://github.com/philsturgeon/codeigniter-restserver) using ajax call but its not working. Not sure if I am missing something. Below is the jquery ajax code that I have created. http://api.phil.com/.

    $(document).ready(function(){
	$("input[name=getuser]").click(function(){
	$.ajax({
			// URL from the link that was clicked on
			url: 'http://api.phil.com/service.php/example/users',
			type:'GET',
			// Success function. the 'data' parameter is an array of objects that can be looped over
			success: function(data, textStatus, jqXHR){
				console.log('GET completed'+data);
			}, 
			// Failed to load request. This could be caused by any number of problems like server issues, bad links, etc. 
			error: function(jqXHR, textStatus, errorThrown){
				console.log('GET incompleted '+textStatus);
			}
		});
	});
    });

I also tried to add the below lines in the jquery ajax code but it does not work

    beforeSend: function(x) {
				x.setRequestHeader('Authorization','username=admin&password=1234');
			  },

Any help is greatly appreciated. Thank you in advance.
