1
I am trying to use Angularjs to pull data from the following API that generates random phrases: http://forismatic.com/en/api/
Follows excerpt from the code I’m using:
$http({ method: 'GET', url: ' http://api.forismatic.com/api/1.0/?method=getQuote&key=457653&format=json⟨=en' }).then(function successCallback(response) { alert("Teste A!"); }, function errorCallback(response) { alert("Teste B!"); });
However, I’m not getting any answers (no Alert runs), let alone pulling the data I want: the sentence and the author. How can I fix this?