LeKoala\SparkPost\Api\SparkPostApiClient::__construct
Create a new instance of the SparkPostApiClient
Signature
public function __construct([string
$key = NULL,
[int
$subaccount = NULL,
[array
$curlOpts = ]]] )
Parameters
$key
— string- Specify the string, or it will read env SPARKPOST_API_KEY or constant SPARKPOST_API_KEY
$subaccount
— int- Specify a subaccount to limit data sent by the API
$curlOpts
— array- Additionnal options to configure the curl client