You are here

private function AmazonSesClass::listIdentities in Amazon SES 7

Call Query API action ListIdentities.

This action is throttled at one request per second.

1 call to AmazonSesClass::listIdentities()
AmazonSesClass::performServiceAction in includes/classes/amazonses.class.php
Add required parameter & header to the Query according to Query action.

File

includes/classes/amazonses.class.php, line 257
Class for interacting with Amazon SES service.

Class

AmazonSesClass
Modify the drupal mail system to use Amazon SES.

Code

private function listIdentities($action_parameter) {
  $response_xml = $this->sesClient
    ->list_identities($action_parameter);

  // Parse xml response.
  $response = $response_xml->body
    ->to_stdClass();
  if ($response_xml->status == '200') {
    $result['status'] = AMAZON_SES_REQUEST_SUCCESS;
    if (isset($response->ListIdentitiesResult->Identities->member)) {
      $result['member'] = $response->ListIdentitiesResult->Identities->member;
    }
  }
  else {
    $result['status'] = AMAZON_SES_REQUEST_FALIURE;
  }
  return $result;
}