简体   繁体   English

Magento REST API在获取产品列表时出错

[英]Magento REST API, got error while fetching product list

I got a problem while gating product in magneto using REST API, First of all I granted all privileges for all accounts in magento / System / WebServices / REST ... Also I created oAuth Consumer. 我在使用REST API在磁盘中选择产品时遇到了问题,首先,我为magento / System / WebServices / REST中的所有帐户授予了所有权限...我还创建了oAuth Consumer。 I got with it two variables (key and secret). 我得到了两个变量(密钥和秘密)。 I am success for gating oauth_token and oauth_token_secret but when I fetch products got error like 我成功地选择了oauth_token和oauth_token_secret但是当我获取产品时出现了错误

Invalid auth/bad request (got a 400, expected HTTP/1.1 20X or a redirect) oauth_problem=parameter_absent&oauth_parameters_absent=oauth_verifier 无效的身份验证/错误请求(获得400,预期的HTTP / 1.1 20X或重定向)oauth_problem = parameter_absent&oauth_parameters_absent = oauth_verifier

my magento version 1.9 我的magento版本1.9

I noticed you wrote "First of all I granted all privileges for all accounts in magento / System / WebServices / REST ..." Did you also go to System -> WebServices / REST Attributes and grant all there as well for your chosen role? 我注意到你写道:“首先,我为magento / System / WebServices / REST中的所有帐户授予了所有权限......”你是否也进入了System - > WebServices / REST Attributes并为你所选择的角色授予了所有权限? A 400 error can indicate that the developer forgot the REST Attributes ... 400错误可能表示开发人员忘记了REST属性...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM