I am trying to login to SugarCRM using jQuery and Sugar REST API. I have no luck so far. Following is the code snippet:
var returnVal = $.ajax(,{
type: "POST",
url: "http://127.0.0.1:101/sugarcrm/service/v4/rest.php?method=login",
dataType: "json",
method: login,
success: function(response){
alert("Done it");
},
data: data1,
failure: failedAjax
});