Random Famous Quotes

פרמיום
על ידי Andres Olvera | מְעוּדכָּן 22 days ago | Data
פּוֹפּוּלָרִיוּת

9.4 / 10

חֶבִיוֹן

450ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

trouble using API

Rapid account: Su 6 A 12
su6a12
9 years ago

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 years ago

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

Rapid account: Fika 4 Life
fika4life Commented 9 years ago

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

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות