Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ateliware/contaazul
A tiny non-official wrapper for ContaAzul's API (https://contaazul.com.br)
https://github.com/ateliware/contaazul
Last synced: about 1 month ago
JSON representation
A tiny non-official wrapper for ContaAzul's API (https://contaazul.com.br)
- Host: GitHub
- URL: https://github.com/ateliware/contaazul
- Owner: ateliware
- License: other
- Created: 2013-06-06T13:18:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-01-16T12:25:14.000Z (11 months ago)
- Last Synced: 2024-03-27T07:39:47.275Z (9 months ago)
- Language: Ruby
- Size: 21.5 KB
- Stars: 9
- Watchers: 59
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# contaazul
[![Dependency Status](https://gemnasium.com/ateliware/contaazul.png)](https://gemnasium.com/ateliware/contaazul) [![Build Status](https://travis-ci.org/ateliware/contaazul.png?branch=master)](https://travis-ci.org/ateliware/contaazul)A tiny *non-official* wrapper for [ContaAzul](http://contaazul.com.br)'s API.
## Installation
Add this line to your application's Gemfile:
gem 'contaazul'
And then execute:
$ bundle
Or install it yourself as:
$ gem install contaazul
## Usage
### Clients
$ Contaazul.clients # Get all
$ Contaazul.client(id) # Get one
$ Contaazul.create_client(options) # Create a client with parameters in options hash
$ Contaazul.edit_client(id, options) # Update client passed in ID with params in options hash
$ Contaazul.delete_client(id) # Remote client passed in ID### Statements
$ Contaazul.statements # Get all
$ Contaazul.statement(id) # Get one
$ Contaazul.create_statement(options) # Create a statement with parameters in options hash
$ Contaazul.edit_statementid, options) # Update statement passed in ID with params in options hash
$ Contaazul.delete_statement(id) # Remote statement passed in ID### Cities
$ Contaazul.cities # Get all
$ Contaazul.city(id) # Get one## More info about integration
See [official docs](https://app.contaazul.com.br/assets/doc/ContaAzulApiDoc_1_0.pdf).
## JSON dependency
Since JSON is included in 1.9 now, we no longer include it as a hard
dependency. Please require it explicitly if you're running Ruby 1.8gem 'json', '~> 1.7'
## 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## Copyright
DO WHATEVER YOU WANT TO!
This project is basically a fork of [octokit.rb](https://github.com/octokit/octokit.rb)
See [LICENSE][] for details.[license]: LICENSE.md