如何使用节点连接到Ebay API上的FindPopularSearches?

我正在使用“请求”模块,并为Ebay API的FindPopularSearches端点传递所有正确的参数,无论我做什么,我都不断收到此错误:

Getting popular keywords is not enabled on current site. 

起初我以为这是我之前提到的categoryID和我使用的siteid之间的不匹配。 但是用别人的代码仔细检查,我可以得出结论,我的API调用是正确的。

 http://open.api.sandbox.ebay.com/shopping?appid=<my-app-id>&callname=FindPopularSearches&siteid=0&responseencoding=JSON&version=847&CategoryID=10159 

正如您发现的,购物API调用(如FPS)在Sandbox中效果不佳。 由于这些电话是只读的,易趣build议直接将其直接转到生产。

我尝试切换到生产应用程序ID,并使用生产API,这解决了我的问题。 AFAIK,这个调用在沙箱模式下似乎不起作用。

如果在文档中显而易见的地方写下来,但是嘿,这就是为什么我要把它留在这里的原因。

所以我猜错误消息中的“网站”意味着沙箱vs生产。