ElasticEmail.WebApiClient-php
ElasticEmail.WebApiClient-php copied to clipboard
Error using example
Hy,
Just copy and paste the example described in readme.md and it gives me the following error:
PHP Catchable fatal error: Argument 1 passed to ElasticEmailClient\ApiConfiguration::setApiKey() must be an instance of ElasticEmailClient\string, string given
btw, i think your examples are very outdated. For example, argument 10, 11, 12 cannot be null, must be array according to sending method definition.
I am experiencing the same problem with the ElasticEmailClient\string
@koAndy , let me know if you manage to solve it please. I will do the same.
It seems I was using a too old version of PHP: while using PHP 7.1 the library is working correctly (including the example the documentation). @koAndy you should check you version and, in case, update it.