Intializing the client
You can initialize the client in different ways to start communicating with the Shopify API.
Resolve from the service container
Using class:
Using alias:
Resolve using the factory
Resolve using dependency injection
You may also inject the Shopify class into a method of a Controller:
By default it will look for credentials in your config, when resolving the client.
Last updated