Hearthstone

KOSTENLOS
Durch omgvamp | Aktualisiert 24 days ago | Entertainment
Popularität

9.7 / 10

Latenz

2,330ms

Service Level

100%

Health Check

N/A

Zurück zu allen Diskussionen

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

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen