class YourMembership::People

YourMembership People Namespace

Public Class Methods

profile_get(session, id) click to toggle source

Returns a person's profile data.

@see api.yourmembership.com/reference/2_00/People_Profile_Get.htm

@param [YourMembership::Session] session @param [String] id ID or ProfileID of the person's whose profile data to return. @return [YourMembership::Profile] Returns a Profile object that represents the person's profile

# File lib/your_membership/people.rb, line 28
def self.profile_get(session, id)
  options = {}
  options['ID'] = id

  response = post('/', :body => build_XML_request('People.Profile.Get', session, options))

  response_valid? response
  YourMembership::Profile.new response['YourMembership_Response']['People.Profile.Get']
end