get_identity_notification_attributes ( $identities, $opt )

Given a list of verified identities (email addresses and/or domains), returns a structure describing identity notification attributes. For more information about feedback notification, see the Amazon SES Developer Guide.

Access

public

Parameters

Parameter

Type

Required

Description

$identities

string
array

Required

A list of one or more identities. Pass a string for a single value, or an indexed array for multiple values.

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Examples

Testing Feedback Notification feature of SES

// Instantiate the class
$email = new AmazonSES();

$response = $email->set_identity_feedback_forwarding_enabled('you@example.com', true);

var_dump($response->isOK());

$response = $email->set_identity_notification_topic('you@example.com', 'Bounce');

var_dump($response->isOK());

$response = $email->get_identity_notification_attributes('you@example.com');

var_dump($response->isOK());
Result:
bool(true)
bool(true)
bool(true)

Source

Method defined in services/ses.class.php | Toggle source view (11 lines) | View on GitHub

public function get_identity_notification_attributes($identities, $opt = null)
{
    if (!$opt) $opt = array();
            
    // Required list (non-map)
    $opt = array_merge($opt, CFComplexType::map(array(
        'Identities' => (is_array($identities) ? $identities : array($identities))
    ), 'member'));

    return $this->authenticate('GetIdentityNotificationAttributes', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback