简体   繁体   English

Magento REST API中针对客户的403访问被拒绝

[英]403 Access Denied for customers in Magento REST API

I am getting 403 Access Denied error for http://www.example.com/rest/api/customers in Magento 1.9.2.4. 我在Magento 1.9.2.4中收到http://www.example.com/rest/api/customers的 403 Access Denied错误。 Everything in admin side rest & admin roles and resources are proper and set to "All". 管理员端休息和管理员角色及资源中的所有内容均正确,并设置为“全部”。 Though http://www.example.com/rest/api/products is working but not able to fetch customers and getting Access Denied. 尽管http://www.example.com/rest/api/products可以正常工作,但无法获取客户并拒绝访问。

I tried with other Magento version setups also in same server but all gives 403 Access Denied error for customers and working fine for products. 我也尝试在同一台服务器上使用其他Magento版本设置,但是所有这些都为客户提供了403 Access Denied错误,并且产品运行良好。 Server is using SUPHP. 服务器正在使用SUPHP。 What could be solution? 有什么解决方案?

Thanks 谢谢

How are you making the calls? 你怎么打电话? Is it a php script or are you using something like this? 这是一个PHP脚本还是您正在使用类似的东西? You need to give this detail to identify the erroe 您需要提供此详细信息以识别错误

How to use POSTMAN rest client with magento REST api with Oauth. 如何在Oauth中将POSTMAN rest client与magento REST api结合使用。 How to get Token and Token Secret? 如何获得令牌和令牌秘密?

I have found this tutorial is great to pinpoint where the error are ie the parameters not being encoded with the url etc 我发现本教程非常适合查明错误所在,即参数未使用url等进行编码

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

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