Hearthstone

免费
通过 omgvamp | 已更新 vor 24 Tagen | Entertainment
人气

9.7 / 10

延迟

2,330ms

服务等级

100%

Health Check

N/A

返回所有讨论

Angularjs Http Call

Rapid account: Deadmask 92
deadmask92
vor 8 Jahren

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

Rapid account: Deadmask 92
deadmask92 Commented vor 8 Jahren

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
});

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论