Ajax, Json & adding a record.
I'm currently trying to test to see if I can come up with the code to add a record to the database. This is what I have:
$.ajax(
{
type:"POST",
url:"https://creator.zoho.com/api/c.mart6780/json/boxoff-mw/form/Stats/record/add/",
data:
{
authtoken:"<MyAuthCode>",scope:"creatorapi",UserID:"56464",MWName:"Test",Attack:"980"
},
contentType:"application/json; charset=utf-8",
dataType:"json",
success:function()
{
alert("success");
},
error:function(jqXHR,textStatus,errorThrown)
{
alert(textStatus+":"+errorThrown);
}
});
All I am getting back is "error: ". Could someone please help me out with establishing the connection.