Jump to content

[SOLVED] prestashop web services not working with rest client


Lasith
 Share

Recommended Posts

 Hi All,

I am new to Prestashop and I want to write a Java wrapper for Prestashop web services.

First, I want to execute Prestashop web services with rest client. I used chrome "advanced rest client" [1]. My request url is,

http://127.0.0.1:8090/prestashop/api/customers

headers are, "u: V7846EKZZJ1OJAW486D66IS7GO24XKUZ"

I am always redirecting to the prestashop home page with this request. If I erase htaccess file then I am getting 404 page not found error. I have enabled the web services with prestashop admin --> advanced parameters --> web services. There I enabled both "PrestaShop's webservice" and "Active mode CGI for PHP" also generated the above mentioned key and enabled it.

Please help me to resolve this issue.

[1]https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo

Thanks, -Lasith.

Share this post


Link to post
Share on other sites

 

Hi All,

I am new to Prestashop and I want to write a Java wrapper for Prestashop web services.

First, I want to execute Prestashop web services with rest client. I used chrome "advanced rest client" [1]. My request url is,

http://127.0.0.1:8090/prestashop/api/customers

headers are, "u: V7846EKZZJ1OJAW486D66IS7GO24XKUZ"

I am always redirecting to the prestashop home page with this request. If I erase htaccess file then I am getting 404 page not found error. I have enabled the web services with prestashop admin --> advanced parameters --> web services. There I enabled both "PrestaShop's webservice" and "Active mode CGI for PHP" also generated the above mentioned key and enabled it.

Please help me to resolve this issue.

[1]https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo

Thanks, -Lasith.

 

I found the solution.

I haven't enabled CURL for PHP. After enabling that I can access web services.

Share this post


Link to post
Share on other sites

  • 6 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More