Amazon SES Version Field

I migrated servers and updated php AWS, but as soon as I did this, I get the following error:

Fatal error: throw an “InvalidArgumentException” exception with the message “Missing the required client configuration parameters: version: (string) The configuration value is“ version. ”Specifying the version limit ensures that your code is not affected by a violation made to the service. For example, when using Amazon S3, you can block the version of your API until “2006-03-01.” Your version of the SDK has the following version of “email”: * “2010-12-01.” You can specify “last” for the configuration value “version” to use the latest up .. to-reach version of the API, which API Client provider may find a Note Using the "last" in the production application is not recommended list of available versions of the API can be found on each page of the document API-client:. http://docs.aws.amazon.com/aws -sdk-php / v3 / api / index.html . If you cannot download a specific version of the API, you may need to update your copy of the SDK. 'in phar: /// /includes/3rdparty/aws/aws.phar/Aws/ in phar: /// /includes/3rdparty/aws/aws.phar/Aws/ClientResolver.php on line 328

I tried adding it using a different method and without any success look into the actual documentation.

Here is my code right now:

$client = SesClient::factory(array( 'user' => 'uuuuu', 'key' => 'aaaaa', 'secret' => 'bbbb', 'region' => 'us-east-1', )); $client->version("2010-12-01"); //Now that you have the client ready, you can build the message $msg = array(); //more code after this... 

Any help would be appreciated!

+6
source share
2 answers

"Apparenty" , now the "version" field is required, so you must pass it to the factory.

+4
source

enter image description here

Source: http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/migration.html

 // Instantiate the client with your AWS credentials $client = SqsClient::factory(array( 'credentials' => $credentials, 'region' => 'us-east-1', 'version' => '2012-11-05' )); 
+4
source

All Articles