I have a xero API that we access via a component in a controller . This works but accessing data is complicated. The models we use need to access data from xero api call and so we are going back and forward from controller to model in collecting data. My question is what is the best way to connect an API to xero.
We want to be able to collect data from a model and that might mean at times accessing xero api calls from a model as well. In cakephp to access API do we do this via components/models … whats the best way?