Hearthstone

फ़्री
द्वारा omgvamp | अपडेट किया गया 24 giorni fa | Entertainment
लोकप्रियता

9.7 / 10

लेटेंसी

2,330ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

Angularjs Http Call

Rapid account: Deadmask 92
deadmask92
8 anni fa

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 anni fa

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

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें