module Accounts

Public Instance Methods

get_all_accounts(constituent_id, inactive=false, include_affiliate=false, options={}) click to toggle source
# File lib/tessitura_rest/crm/accounts.rb, line 3
def get_all_accounts(constituent_id, inactive=false, include_affiliate=false, options={})
  options.merge!(basic_auth: @auth, headers: @headers)
  response = self.class.get(base_api_endpoint("CRM/Accounts?constituentId=#{constituent_id}&includeInactive=#{inactive}&includeAffiliates=#{include_affiliate}"), options)
  JSON.parse(response.body)
end