Api key must be base64 encoded, according to this documentation https://developer.companieshouse.gov.uk/api/docs/index/gettingStarted/apikey_authorisation.html.
So line 16 on the client file should look like;
$this->api_key = base64_encode($api_key);
Api key must be base64 encoded, according to this documentation https://developer.companieshouse.gov.uk/api/docs/index/gettingStarted/apikey_authorisation.html.
So line 16 on the client file should look like;
$this->api_key = base64_encode($api_key);