Skip to content

Examples of the default response formats

Nadia edited this page Jan 21, 2020 · 6 revisions
client = EbanqApi::Client.new
client.profile.show(1)

# success response
#<OpenStruct uid=1, name="John", mail="john@doe.com", created="27/12/2019 - 03:36 PM", access="21/01/2020 - 09:17 AM", status=1, first_name="John", last_name="Doe", user_group="", messages_topic="", last_login=#<OpenStruct date="21/01/2020 - 9:17 AM", ip="11.11.11.11">, message_unreaded_count="2", tans_count=20, date_of_birth=nil, home_phone=nil, office_phone=nil, mobile_phone=nil, fax=nil, residence=nil, citizenship=nil, document_type=0, passport_number=nil, profile_type=0, security_question="", security_answer="cat", beneficiary=#<OpenStruct bo_document_type=nil, bo_full_name=nil, bo_date_of_birth=nil, bo_passport_number=nil, bo_relationship=nil, bo_address=nil, bo_phone_number=nil>, physical_address=#<OpenStruct pa_address=nil, pa_address_2nd=nil, pa_city=nil, pa_region=nil, pa_zip=nil, pa_country=nil>, mailing_address=#<OpenStruct ma_name=nil, ma_address=nil, ma_address_2nd=nil, ma_city=nil, ma_state=nil, ma_zip=nil, ma_country=nil, ma_phone=nil, ma_as_physical=0>>

# error response
# {"code"=>403, "message"=>"Access denied for user John"} (EbanqApi::Forbidden)
Clone this wiki locally