Custom restclient for magento