Documentation

GuzzleClientFactory
in package

Table of Contents

Methods

create()  : Client
Create a Guzzle client
createClientWithKey()  : Client
Create a Guzzle client with an API key

Methods

create()

Create a Guzzle client

public static create([array<string|int, mixed> $config = [] ]) : Client
Parameters
$config : array<string|int, mixed> = []
  • The configuration for the client
Return values
Client
  • The Guzzle client

createClientWithKey()

Create a Guzzle client with an API key

public static createClientWithKey(string $url, string $apiKey) : Client
Parameters
$url : string
  • The base URL for the client
$apiKey : string
  • The API key to use
Return values
Client
  • The Guzzle client

        
On this page

Search results