-1
Personal someone could help me by giving an example of how to consume an API that returns a JSON just like this API below:
https://console.faceplusplus.com/documents/6329465
Staff implemented the code below can help me is not returning anything or 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',
});
});
The site does not work to give ready codes. You need to try and if you have any problem you turn here. Or you can search for something related that has much already published material.
– Sam
I just wanted an example but thanks anyway.
– Adilmar Coelho Dantas
I managed to implement the request could help me ?
– Adilmar Coelho Dantas
Remove the
JSON.stringify
and do what Rodrigo’s reply says the return will be a JSON from where you can get the data you want.– Sam
Hi @Sam I removed and made the changes the request happens but still does not appear in the log.
– Adilmar Coelho Dantas
but it appears the word "out" that you put?
– Sam
also not @Sam I believe that it did not enter in sucess but in the browser of the 200 and I see the exit as well as Rodrigo
– Adilmar Coelho Dantas
Let’s go continue this discussion in chat.
– Sam