Touggsl - Access Superlogica API through Ruby Code
Até o momento essa gem fornece três operações sobre a API da Superlogica
-
Autenticação
-
Cadastro de cliente
-
Assinar um plano para um cliente
-
Buscar clientes inadimplentes
Autenticação
Touggsl.set_uri("http://sua_conta.superlogica.net/financeiro/atual/")
@auth = Touggsl::Auth
@auth.login("jack", "secret")
Criando um cliente
cliente = Touggsl::Client.new(auth)
client.create_new_client("0303030", "Jack", "Tougg") # retorna "200" para sucesso
Vinculando um cliente a um plano
client.hiring_plan(plan_id, client_id, contract_id) #retorna "200" para sucesso.
Buscando inadimplentes
client.get_inadimplentes #retorna uma array de Client
Para maiores informações recomenda-se dar uma olhada nos testes e na documentação.
Contributing to Touggsl
-
Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet.
-
Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it.
-
Fork the project.
-
Start a feature/bugfix branch.
-
Commit and push until you are happy with your contribution.
-
Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.
-
Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
Authors
-
Édipo Luis Féderle - [email protected]
-
Dyan Carlos Carra - [email protected]
Copyright
Copyright © 2013 Tougg. See LICENSE.txt for further details.