Tafqit

फ्रीमियम
द्वारा postscripter | अपडेट किया गया एक महीने पहले | Education
लोकप्रियता

9.1 / 10

लेटेंसी

298ms

सेवा का स्तर

100%

Health Check

N/A

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

Error while using Google Sheet

Rapid account: Mhakmeh
mhakmeh
एक वर्ष पहले

Hi
I tried to use it inside my google sheet document but am getting this error

Exception: Request failed for https://tafqit.p.rapidapi.com returned code 400 (line 20).

and here is the code I wrote

function Taqfeet(input){
const encodedParams = {
“the_number”: input,
“unit”: " ريال سعودي",
“hundreds_form”: “مائة”
}

const options = {
method: ‘POST’,
headers: {
‘content-type’: ‘application/x-www-form-urlencoded’,
‘X-RapidAPI-Key’: 'here the key I got after subscriping,
‘X-RapidAPI-Host’: ‘tafqit.p.rapidapi.com
},
body: encodedParams
};

var response = UrlFetchApp.fetch(‘https://tafqit.p.rapidapi.com/convert’, options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
}

Rapid account: Postscripter
postscripter Commented एक वर्ष पहले

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

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