Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby wrapper para los servicios web de la AFIP
Ruby
branch: master

README.rdoc

Afipws

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.

Testing

git clone git://github.com/eeng/afipws.git
cd afipws
bundle
rake

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don't break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Something went wrong with that request. Please try again.