A
| 2 | Ended up figuring out the issue.
Here is the code if anyone else is trying to use this API with Angular JS $http warpper.
<pre><code>
var req = {
method: 'GET',
url: 'https://love-calculator.p.mashape.com/getPercentage?fname=nameone&sname=nametwo',
dataType: 'json',
headers: {
'Accept': 'application/json',
'X-Mashape-Key': 'YOU-API-KEY'
},
};
$http(req).success(function(data) {
$scope.data = data;
console.log(data);
});
};
</pre></code> | Mi. 4:39 4/2/15 |
A
| 2 | Ended up figuring out the issue.
Here is the code if anyone else is trying to use this API with Angular JS $http warpper.
<pre><code>
var req = {
method: 'GET',
url: 'https://love-calculator.p.mashape.com/getPercentage?fname=nameone&sname=nametwo',
dataType: 'json',
headers: {
'Accept': 'application/json',
'X-Mashape-Key': 'YOU-API-KEY'
},
};
$http(req).success(function(data) {
$scope.data = data;
console.log(data);
});
};
</pre></code> | Mi. 4:39 4/2/15 |