Hi, I have developed a simple web application with angularjs. I don’t understand how can i pass my authentication key. Can you help me?
Thanks
Hi, i have solved my problem. The code is this: $http({ method: “GET”, url: {api url}, contenttype: “application/json”, headers:{“X-Mashape-Key”:"{you kay}"} }).success(function (data, status, headers, config) { //success code }).error(function (data, status, headers, config) { //error code });
Join in the discussion - add comment below:
Hi,
i have solved my problem.
The code is this:
$http({
method: “GET”,
url: {api url},
contenttype: “application/json”,
headers:{“X-Mashape-Key”:"{you kay}"}
}).success(function (data, status, headers, config) {
//success code
}).error(function (data, status, headers, config) {
//error code
});