shaft17 Posted May 27, 2016 Share Posted May 27, 2016 hi. i recently install prestashop in windows PC and ativate webservices, but i dont have the API folder and files. Where i can download that? my version is 1.6.1.5. thanks Link to comment Share on other sites More sharing options...
diegonella Posted May 28, 2016 Share Posted May 28, 2016 - First activate webservces (Settings > Websercices) - Create key - check http:/www.domain.com/api/ user and pass is your key generated Link to comment Share on other sites More sharing options...
shaft17 Posted May 30, 2016 Author Share Posted May 30, 2016 thanks for the reply. i still dont have access to api. the window to put the username and password dont show and the page give "Error HTTP 404.0 - Not found" if i put in address http://127.0.0.1/webservice/dispatcher.php, ask me for username and password, and show me a xml file, or something.. Can you help me, plz? Link to comment Share on other sites More sharing options...
diegonella Posted May 30, 2016 Share Posted May 30, 2016 check enabled in apache rewrite module and the real url is http:/127.0.0.1/api/ Link to comment Share on other sites More sharing options...
shaft17 Posted May 30, 2016 Author Share Posted May 30, 2016 this is in iis windows. in .htaccess file i have: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums<IfModule mod_rewrite.c><IfModule mod_env.c>SetEnv HTTP_MOD_REWRITE On</IfModule>RewriteEngine onRewriteCond %{HTTP:Authorization} ^(.*)RewriteRule . - [E=HTTP_AUTHORIZATION:%1]#Domain: 127.0.0.1RewriteRule . - [E=REWRITEBASE:/]RewriteRule ^api$ api/ [L]RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]# AlphaImageLoader for IE and fancyboxRewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]</IfModule>AddType application/vnd.ms-fontobject .eotAddType font/ttf .ttfAddType font/otf .otfAddType application/x-font-woff .woff<IfModule mod_headers.c> <FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$"> Header add Access-Control-Allow-Origin "*" </FilesMatch></IfModule>#If rewrite mod isn't enabledErrorDocument 404 /index.php?controller=404# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again something wrong? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now