Sha256: 3cc8067c5e68ebd9ddb425978267ce8ab8d639b14d24a816a2e86e1eb52fd614
Contents?: true
Size: 751 Bytes
Versions: 2
Compression:
Stored size: 751 Bytes
Contents
module SantanderChile module ApiClient class Client AUTH_BASE_URL = "https://apideveloper.santander.cl/sancl/privado/Cliente/v1/" BASE_URL = "https://apiper.santander.cl/appper/facade/" include Authentication attr_accessor :config def initialize self.config = Configuration.new yield(config) if block_given? config.validate! end def connection(host: BASE_URL) Connection.new(client: self, host: host) end def products ProductsResource.new(self).list end def movements(account) MovementsResource.new(self).list(account) end def contacts PaymentsResource.new(self).contacts.data end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
santander_chile-api_client-1.1.1 | lib/santander_chile/api_client/client.rb |
santander_chile-api_client-1.1.0 | lib/santander_chile/api_client/client.rb |