I have some questions about api consuming.
What are the best way to use 3rd party apis?
Using resources or services?
let's say we have ecommerce shop and we need to connect to ERP system.
We can create base class with all ERP provided data, and in there we connect via guzzle?
Then extends that class into children classes?
@Snapey
A ok, I get a point on that. And lets say we have multiple shipping gateways, we will create base service container and extend it to child service containers for specific shipping gateway, right?
What about API resources?
Or what about repository pattern?