Sha256: 0504b00e44fab2f9cfddcb5f0aa0f5ed138ef7f8e4689cbd7ce1675e9c1cd860
Contents?: true
Size: 628 Bytes
Versions: 4
Compression:
Stored size: 628 Bytes
Contents
module IdentityApiClient class Member < Base def details(guid: nil, email: nil, load_current_consents: false) if guid.present? params = {'guid' => guid, 'api_token' => client.connection.configuration.options[:api_token]} elsif email.present? params = {'email' => email, 'api_token' => client.connection.configuration.options[:api_token]} else raise "Must have one of guid or email" end if load_current_consents params['load_current_consents'] = true end resp = client.post_request('/api/member/details', params) resp.body end end end
Version data entries
4 entries across 4 versions & 1 rubygems