21. # Retrieve the details about a user by email
#
# +email+ (Required)
# The email of the user to look within. To run getInfoByEmail on
multiple addresses, simply pass a comma-separated list of valid email
addresses.
#
def self.info_by_email(email)
email = email.join(',') if email.is_a?(Array)
Mash.new(self.get('/',
! ! :query => {
! ! ! :method => 'user.getInfoByEmail',
! ! ! :email => email
}.merge(Upcoming.default_options))).rsp.user
end
22. # Retrieve the details about a user by email
#
# +email+ (Required)
# The email of the user to look within. To run getInfoByEmail on
multiple addresses, simply pass a comma-separated list of valid email
addresses.
#
More Ruby like th an
def self.info_by_email(email)
email = email.join(',') if email.is_a?(Array)
Mash.new(self.get('/',
! ! :query => {
! ! ! :method => 'user.getInfoByEmail',
! ! ! :email => email
}.merge(Upcoming.default_options))).rsp.user
end