Hearthstone

GRATIS
Da omgvamp | Aggiornamento 24日前 | Entertainment
Popolarità

9.7 / 10

Latenza

2,330ms

Livello di servizio

100%

Health Check

N/A

Torna a tutte le discussioni

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

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti