Random Famous Quotes

FREEMIUM
By Andres Olvera | Updated לפני 8 ימים | Data
Popularity

9.4 / 10

Latency

462ms

Service Level

100%

Health Check

N/A

Back to All Discussions

trouble using API

Rapid account: Su 6 A 12
su6a12
לפני 9 שנים

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 לפני 8 שנים

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

Rapid account: Fika 4 Life
fika4life Commented לפני 9 שנים

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

Join in the discussion - add comment below:

Login / Signup to post new comments