Random Famous Quotes

FREEMIUM
Por Andres Olvera | Actualizada 21일 전 | Data
Popularidad

9.4 / 10

Latencia

450ms

Nivel de servicio

100%

Health Check

N/A

Volver a todas las conversaciones

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

Únase a la conversación, añada un comentario a continuación:

Inicie sesió/Regístrese para publicar nuevos comentarios