Skip to content

Move the Guzzle client from being injected into the API class. #39

Description

@OAFCROB

Move the Guzzle client from being injected into the API class, as the external users shouldn't have to know that the API calls are made by Guzzle client within this package.

A current usage would look something like this;

$api = new ResellerClubApi(
                new ResellerClubApiConfig(
                    'auth-key',
                    'api-key',
                    'env'
                ),
                new GuzzleClient
            );

Probably should be more like this;

$api = new ResellerClubApi(
                new ResellerClubApiConfig(
                    'auth-key',
                    'api-key',
                    'env'
                )
            );

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions