问题标签 [wordnik]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - 尝试getDefinitions时Wordnik“尝试获取非对象的属性”错误
我正在尝试使用 Wordnik PHP API,但遇到了一些麻烦。我尝试使用 getDefinitions 方法,但它返回错误:Notice: Trying to get property of non-object in C:\xampp\htdocs\index.php on line 18
。
这是以下代码:
import - 从 Google 表格中的 Wordnik API URL 提取文本
谁能解释如何将以下网址中的特定字段导入/提取到 Google 表格中:
我猜有一个 IMPORTXML 查询可以做到这一点,但它没有 IMPORTXML 通常用来导入它的节点。相反,代码如下所示:
[{"mi":6.720745180909532,"gram1":"pretty","gram2":"much","wlmi":18.953166108085608},{"mi":6.650496643050408,"gram1":"pretty","gram2": "好","wlmi":18.469078820531266},{"mi":9.839004198061549,"gram1":"pretty","gram2":"darn","wlmi":17.298435816698845},{"mi":7.515791105774376,"gram1 ":"pretty","gram2":"cool","wlmi":15.515791105774376},{"mi":8.233704272151307,"gram1":"pretty","gram2":"impressive","wlmi":15.210984195651225} ]
因此,如果单元格 A2 具有生成此代码的 URL,我如何让 B2 在“gram2”之后给我文本(在这种情况下,“good”、“darn”、“cool”和“impressive”)。
谢谢
迟迟
javascript - 如何读取jsonp类型的对象
我得到这个 HTML 文件来向随机词 API (wordnik) 服务器发出 GET 请求。它返回如下内容:
我只想要该"word"
部分,但不知道如何访问它。我以为会,data.word
但它只是打印出来undefined
的。
javascript - 如何使 wordnik api 停止抛出超出访问限制的错误
我正在尝试将 Wordnik API 用于 JS 中的项目。
在使用 API 时,我认为我对许多请求提出了很多请求,现在每当我提出请求时都会出现“超出访问限制”错误。有什么办法可以让错误消失,还是我应该等待它自行修复?
这是我设置的设置(url):
这是我得到的回应:
objective-c - Implementing a request URL into an imported cocapod that uses WordNik API
I'm making a swift app in Xcode that makes use of a cocapod called HNKWordLookup (originally written in objective c). This pod uses the WordNik API to return a random word. My only issue is that a lot of the words that are returned are quite obscure.
I figured that I could go to the http://developer.wordnik.com/docs page and set parameters there, and then be given a Request URL that caters to these parameters . I assume I need to put this into my code somewhere in place of another URL that is present within the pre written pod, but I have no clue where to put the request URL. At first I put it in place in the following line of code which was located in the pod's .m file ("HNKLookup.m:):
changing it to
but this broke my code. Is there a certain phrase or area that I should be looking out for within the pod where I can put my new request URL in and thus run my program with my desired parameters? As you can tell I'm pretty new to programming.
wordnik - Wordnik api。只允许来自一个域的请求
我在客户端使用 wordnik api。而且,作为对 api 密钥的保护,我只想允许我的网站(域)使用该 api 密钥发送请求。例如,在 Firebase 中,我们可以控制哪些 IP 地址或域可以使用该密钥发送请求。这在wordnik api中可能吗?
python-3.x - 有没有办法在没有服务器端访问的情况下将 wordnik API 用于桌面应用程序?
我正在使用 PyQt5 编写一个桌面应用程序,它使用 Wordnik API 来获取单词定义。我没有服务器端访问权限,也不想投资购买它。有什么方法可以可靠地隐藏我的密钥,以便我可以在 GitHub 上共享我的程序?
wordnik - 按主题搜索 Wordnik API?
当我使用relatedWords API 端点时,我看到单词“flower” has_topic “Home & Garden”。但我不能完全弄清楚如何使用这个主题的 API 查询。我如何才能找到“家居与花园”主题下列出的其他内容?