Random Famous Quotes

फ्रीमियम
द्वारा Andres Olvera | अपडेट किया गया vor 22 Tagen | Data
लोकप्रियता

9.4 / 10

लेटेंसी

450ms

सेवा का स्तर

100%

Health Check

N/A

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

trouble using API

Rapid account: Su 6 A 12
su6a12
vor 9 Jahren

Hi. I’m having trouble using your API. I keep getting the 401 status. This is what I have to call it. Apologies in advance, I’m a newbie. Thanks.

var randomAPI = “https://andruxnet-random-famous-quotes.p.mashape.com/cat=movies”;
var randomOptions = {
“X-Mashape-Key”: “HBK2T7OffAmshmunnLnYngv0CcQup1JMuUVjsngYRpvpfLtulU”,
“Content-Type”: “application/x-www-form-urlencoded”,
“Accept”: “application/json”
};
function newWord(data) {

}
$.getJSON(randomAPI, randomOptions, newWord);

Rapid account: Andruxnet
andruxnet Commented vor 8 Jahren

I apologize for the looong wait of my reply. I’m glad you got it working.

Rapid account: Fika 4 Life
fika4life Commented vor 9 Jahren

This solution worked for me
$.ajax({
url: “https://andruxnet-random-famous-quotes.p.mashape.com/cat=movies”,
contentType: “application/x-www-form-urlencoded”,
method: “POST”,
headers: {‘X-Mashape-Key’: ‘mByTgz8NRXmshG13nKBuG4cUKuLqp1Q45WrjsnglfACnvbkLJE’},
accept: “application/json”,

})
.done(function (data){
alert("Data Saved: " + data );
})

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

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