Personally someone could help me by giving an example of how to consume an API that returns a JSON like this API below:
Personally I implemented the code below can help me is not returning anything nor error.
$('.teste').click(function() {
$.ajax({
type:"post",
url:"https://api-us.faceplusplus.com/facepp/v3/detect",
data: {
api_key: 'M...s',
api_secret: 'y...0',
url: 'http://emotions.pushsistemas.com.br/web/train/mmi/alegria/1.png'
},
success: function(data) {
console.log("saida",JSON.stringify(data));
},
dataType: 'jsonp',
});
});