Project

sgn

0.0
No commit activity in last 3 years
No release in over 3 years
Webservice para o sistema imobiliário http://www.sgn.com.br
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Sgn

Build Status Coverage Status Code Climate Dependency Status Gem Version

Instalation

Add this line to your application's Gemfile:

gem 'sgn'

And then execute:

$ bundle

Instalation

gem install sgn
require 'sgn'

Usage

customer_number   = "001"
customer_password = "118576708972562"

ws = Sgn::Webservice.new(customer_number, customer_password)
ws.get('busca_imoveis2', { 'itenspp' => 1 })

# {
#   'total' => 3,
#   'num_pags' => 3,
#   'imoveis' => {
#     '0' => {
#       'ref'                   => '0092',
#       'preco'                 => '1.00',
#       'tipo'                  => 'Sobrado',
#       'cidade'                => 'OSASCO'
#       'bairro'                => 'QUITAÚNA'
#       'dormitorios'           => nil,
#       'suite'                 => nil,
#       'garagem'               => nil,
#       'descricao'             => 'dgdsggsdsg SOBRADO LINDO',
#       'area_util'             => nil,
#       'area_construida'       => nil,
#       'area_terreno'          => nil,
#       'finalidade'            => 'L',
#       'cond_fechado'          => 'N',
#       'saldo_devedor'         => 'N',
#       'uso_imovel'            => 'R',
#       'fotos' => [
#         'http://www.sgn2.com.br/clientes/customer/loc/pic1.jpg',
#         'http://www.sgn2.com.br/clientes/customer/loc/pic2.jpg'
#       ],
#       'destaque'              => 'N',
#       'plantao'               => 'N',
#       'video_youtube'         => nil,
#       'placa'                 => 'N',
#       'permuta'               => 'N',
#       'iptu'                  => nil,
#       'valor_sem_bonificacao' => 1,
#       'regiao'                => nil,
#       'endereco'              => 'RUA JEQUIE, 12',
#       'banheiros'             => nil,
#       'titulo_anuncio'        => nil,
#       'caracteristicas'       => nil,
#       'opcao'                 => 0,
#       'corretores'            => { '0' => nil, '1' => nil }
#     }
#   }
# }

Author

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature) Do not forget to write tests
  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