简体   繁体   中英

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. 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

Invalid auth/bad request (got a 400, expected HTTP/1.1 20X or a redirect) oauth_problem=parameter_absent&oauth_parameters_absent=oauth_verifier

my magento version 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? A 400 error can indicate that the developer forgot the REST Attributes ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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