I am implementing http://sendy.co and Betakit and pretty much stuck trying to do POST via AJAX with some values to pass on.
According to Sendy API here I should be able to subscribe but I am struggling on getting it to work with AJAX. With this code below that I tried it becomes GET when I submit/click:
$.ajax({
type: "POST",
url:"http://example.com/subscribe",
dataType: "jsonp",
data: {email: email,
list: 'Pasdsadasdasdada'},
});
};
How do I make it to POST instead of GET?