WordsAPI

免费增值
通过 dpventures | 已更新 месяц назад | Data
人气

9.9 / 10

延迟

174ms

服务等级

100%

Health Check

N/A

返回所有讨论

How do I use this API with JSON promises?

Rapid account: Blagonation
blagonation
6 лет назад

If I have a custom mashape key, where in the GET request url would i put it? Currently I only have their base url which is “https://wordsapiv1.p.mashape.com/words/example/definitions”; but this doesn’t return anything

Rapid account: Kruchy 1980
Kruchy1980 Commented 4 года назад

Hwy Pablion thanks for giving solution had the same problem but now works fine thanks

Rapid account: Pablion
Pablion Commented 4 года назад

in JAVACRIPT/fetch
console.log(response);
should be changed to :

response.json().then((data) => {
        console.log(data);
    });

according to this:
https://stackoverflow.com/questions/45366789/trying-to-access-response-data-using-fetch

Rapid account: Pablion
Pablion Commented 4 года назад

same peoblem.

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

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