Tafqit

免费增值
通过 postscripter | 已更新 한 달 전 | Education
人气

9.2 / 10

延迟

295ms

服务等级

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

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论