Exporting categories with Magento API

Because in the documentation example is not written very well, I’ve tried like this:

$catInfo = $proxy->call($sessionId,'category.info', 5, 'german');

but this returns the info of category 5 for the default store.

The proper call is:

$catInfo = $proxy->call($sessionId,'category.info', array(5, 'german'));

hope that helps someone.

Share it:
  • Facebook
  • Twitter
  • Digg
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
  • Add to favorites
  • Identi.ca

One thought on “Exporting categories with Magento API

Leave a Reply

Your email address will not be published. Required fields are marked *