Sha256: e91e22d6485faebb24dd3281453e08572bb79f997d51ef6b7cee08f629dbb529

Contents?: true

Size: 1.06 KB

Versions: 10

Compression:

Stored size: 1.06 KB

Contents

= Afipws

== Uso 

Primero hay que crear la clave privada y obtener el certificado correspondiente según los pasos indicados {aquí}[http://www.afip.gov.ar/ws/WSAA/cert-req-howto.txt].

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.

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
afipws-1.0.0 README.rdoc
afipws-0.2.0 README.rdoc
afipws-0.1.8 README.rdoc
afipws-0.1.7 README.rdoc
afipws-0.1.6 README.rdoc
afipws-0.1.4 README.rdoc
afipws-0.1.3 README.rdoc
afipws-0.1.2 README.rdoc
afipws-0.1.1 README.rdoc
afipws-0.1.0 README.rdoc