Page 1 of 1

API

Posted: Wed Mar 11, 2015 12:22 pm
by msandin
Folks,

We are running A/C 5 in production. We have a test site running A/C 8. Several developers have been working on it. I needed another area to play with our interface from Visual FoxPro 9 which is our in-house system.

I downloaded a 30day trial of 9 to work with. I finally got the database setup and populated from an A/C 8 database backup. I'm trying to access it via the API. I don't see an api folder in the A/C 9 download stuff. Can you help me?

Miles Sandin

Re: API

Posted: Wed Mar 11, 2015 2:12 pm
by rmaweb
Hello Miles,

There isn't an actual folder for the api in the file structure. However, if you access yousite.com/api/help in the browser, you will be able to see what is currently available.

This page on the Ablecommerce wiki should help some more http://wiki.ablecommerce.com/index.php/ ... ld_Web_Api

Also this if your looking to integrate another provider, http://wiki.ablecommerce.com/index.php/ ... uilder_API

Re: API

Posted: Wed Mar 11, 2015 3:55 pm
by msandin
Thanks, but I don't understand. I guess I'm dense...

In the A/C 8 system I issue a command that looks like this

lcurl = "http://oursite.com/api/Products/309/list" and it returns info on the product with productid = 309

Within in our newly built A/C 9 system the command fails.

Re: API

Posted: Wed Mar 11, 2015 6:15 pm
by rmaweb
Take out the list and just use http://oursite.com/api/Products/309 does that work?

Re: API

Posted: Thu Mar 12, 2015 12:09 pm
by msandin
It does for the AC 8 site, but not the AC 9.

Re: API

Posted: Fri Mar 13, 2015 1:45 am
by nadeem
What are you getting in response when you make a call to API? Any error message in your log? It should work in both cases i.e. with and without /list at the end.