Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 960 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 960 Bytes

Afipws

Ruby client para los web services de la AFIP.

Build Status

Uso

Primero hay que crear la clave privada y obtener el certificado correspondiente según los pasos indicados aquí.

Luego hay que instalar la librería:

gem install afipws

Y por último usamos el web service de esta forma:

require 'afipws'
ws = Afipws::WSFE.new env: :development, cuit: '...', key: File.read('test.key'), cert: File.read('test.crt')
puts ws.cotizacion 'DOL'

De momento sólo están soportados los servicios WSAA y WSFEv1. Ver specs para más ejemplos.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request