Giter Site home page Giter Site logo

kashflowapi's Introduction

KashflowApi

Build Status Code Climate Coverage Status

KashflowApi provides an Active Record like interface to the Kashflow API.

Install

You can install KashflowApi by adding it yo your Gemfile like this:

gem 'kashflow_api'

and running bundle install

Usage

At the beginning of your program, or in an rails initializer call the configure block like so:

KashflowApi.configure do |c|
  c.username = "Username"
  c.password = "Password"
  c.loggers = false
end

I recommend settings loggers to false so that you don't get all the soap exchanges echoed out.

You can now call methods on the models e.g.

KashflowApi::Customer.all
KashflowApi::Customer.find("Cust01")
KashflowApi::Customer.find_by_email("[email protected]")

Saving

All the Kashflow objects in the gem have a .save method which will either insert a new record or update the current one.

More Info

For more info head over to the wiki

kashflowapi's People

Contributors

arcath avatar

Watchers

Glyn Hudson  avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.