Simple E-Goi API Wrapper
Add this line to your application's Gemfile:
gem 'egoi', git 'https://github.com/ignicaodigitalbr/egoi'
And then execute:
$ bundle
# Create an instance of the xmlrpc connector
Egoi::XmlRpc.new
# You may pass arguments to initialize it with specific configs you want
# Example:
Egoi::XmlRpc.new(friendly_messages: false, apikey: 'YOUR APIKEY')
# If you initialize it with an apikey, it will be used in future api calls
After you have a XmlRpc instance, you may call any of the (E-Goi API)[https://api-docs.e-goi.com/#api-methods] methods by calling through it. For instance:
egoi_client = Egoi::XmlRpc.new
egoi_client.checklogin(apikey: 'YOUR APIKEY')
# It will call the api checklogin method with the apikey parameter.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request