vendredi 4 septembre 2015

Amazon SES version field

I've migrated servers and updated AWS phar, however once i've done that i'm getting the following error:

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Missing required client configuration options: version: (string) A "version" configuration value is required. Specifying a version constraint ensures that your code will not be affected by a breaking change made to the service. For example, when using Amazon S3, you can lock your API version to "2006-03-01". Your build of the SDK has the following version(s) of "email": * "2010-12-01" You may provide "latest" to the "version" configuration value to utilize the most recent available API version that your client's API provider can find. Note: Using 'latest' in a production application is not recommended. A list of available API versions can be found on each client's API documentation page: http://ift.tt/1trFsBT. If you are unable to load a specific API version, then you may need to update your copy of the SDK.' in phar:////includes/3rdparty/aws/aws.phar/Aws/ in phar:////includes/3rdparty/aws/http://ift.tt/1JEAYL2 on line 328

I've tried adding it via different method and looking into the actual documentation without any luck.

Here's 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!




Aucun commentaire:

Enregistrer un commentaire