i'm trying to access below webservice through ajax, but it's not working. http://task.woo.gy/api/v1/article/?format=json username :- root password :- rohit
ajax function
$.ajax({
type: "POST",
url: "http://task.woo.gy/api/v1/article/?format=json",
data: "{ 'username': 'root', 'password': 'rohit'}",
contentType: "application/json; charset=utf-8",
success: ajaxCallSucceed_allorder,
dataType: "json",
failure: ajaxCallFailed_allorder
});
function ajaxCallSucceed_allorder()
{
alert('success');
}
function ajaxCallFailed_allorder()
{
alert('failed');
}