Skip to content

briqmx/banregio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

banregio

config

config = {
  url: ,
  account:,
  customer:,
  basic_auth: {
    user:,
    password:
  },
  p12: {
    cert_base64:,
    password:
  }
}

¿Comó generar cert_base64?

1.- certificate_txt = File.new(path, "w")

2.-certificate_txt.puts(Base64.encode64(File.read(certificate_p12_path)))

3.- certificate_txt.close

4.- Abrir archivo copiar y pegar en la variable cert_base64

Inicializar api

api = Banregio::ApiClient.from_config(config)

Movimientos

date = Date.new(2023, 01, 01)
api.movements(initial_date: date, final_date: date)

Balance

api.balance

About

API gem for banregio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages