Class: Spendee::Clients::Login

Inherits:
BaseClient
  • Object
show all
Defined in:
lib/spendee/clients/login.rb

Instance Method Summary collapse

Instance Method Details

#create(token, global_currency:, default_wallet_name:, timezone:, platform:) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/spendee/clients/login.rb', line 6

def create(token, global_currency:, default_wallet_name:, timezone:, platform:)
  post(
    body: {
      global_currency: global_currency,
      default_wallet_name: default_wallet_name,
      timezone: timezone,
      platform: platform
    }.to_json,
    headers: default_headers(token)
  )
end