Class Amazon::AWS::CustomerContentSearch
In: lib/amazon/aws.rb
Parent: Operation

Retrieve basic Amazon customer data.

Methods

new  

Public Class methods

Retrieve customer information, using an e-mail address or name.

If customer_id contains an ’@’ sign, it is assumed to be an e-mail address. Otherwise, it is assumed to be the customer‘s name.

Example:

 ccs = CustomerContentSearch.new( 'ian@caliban.org' )

In the above example, we look up customer information about ian@caliban.org. The CustomerInfo response group will return, amongst other things, a customer_id property, which can then be plugged into CustomerContentLookup to retrieve more detailed customer information.

[Source]

# File lib/amazon/aws.rb, line 1102
      def initialize(customer_id)
        id = customer_id =~ /@/ ? 'Email' : 'Name'
        super( { id => customer_id } )
      end

[Validate]