adding a small magento API example