Class: Amazon::AWS::CustomerContentSearch
- Defined in:
- lib/amazon/aws.rb
Overview
Retrieve basic Amazon customer data.
Constant Summary
Constants inherited from Operation
Instance Attribute Summary
Attributes inherited from Operation
#kind, #params, #response_group
Instance Method Summary collapse
-
#initialize(customer_id) ⇒ CustomerContentSearch
constructor
Retrieve customer information, using an e-mail address or name.
Methods inherited from Operation
#batch, #query_parameters, #response_group_orig=
Constructor Details
#initialize(customer_id) ⇒ CustomerContentSearch
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( '[email protected]' )
In the above example, we look up customer information about [email protected]. 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.
1102 1103 1104 1105 |
# File 'lib/amazon/aws.rb', line 1102 def initialize(customer_id) id = customer_id =~ /@/ ? 'Email' : 'Name' super( { id => customer_id } ) end |