Hearthstone

חינם
על ידי omgvamp | מְעוּדכָּן 24日前 | Entertainment
פּוֹפּוּלָרִיוּת

9.7 / 10

חֶבִיוֹן

2,330ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

Angularjs Http Call

Rapid account: Deadmask 92
deadmask92
8 वर्ष पहले

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 8 वर्ष पहले

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

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות