Git Product home page Git Product logo

lockstep-sdk-ruby's Introduction

Lockstep SDK For Ruby

Gem

A financial service SDK for ruby for innovative accounting solutions providers.

Who are we?

Lockstep automates accounting workflows to improve your operational efficiency and cash flow. Accelerate payments through automated customer communications, enhanced collections activity management, and innovative forecasting and reporting.

Getting Started

Here's how to add the Lockstep ruby SDK to your project.

  1. Add the LockstepSdk gem to your Gemfile or install it
 gem install LockstepSdk
  1. Obtain an API key for the Lockstep Platform API by visiting: API Key

  2. Creating LockstepAPI Client in your ruby file

require 'lockstep_sdk/lockstep_api'

# env can also be prd or your own url addres
env = 'sbx'
client = LockstepSdk::LockstepApi.new(env)
client.with_api_key({INSERT_API_KEY})
  1. Make a ping call to make sure you're connected https://developer.lockstep.io/reference/get_api-v1-status
status_results = client.status.ping()
puts status_results

You now have your API credentials and have successfully created your client.

Features

How to Use (Basic Usage)

This example will show you how to call an API, using the Query Invoices API to retrieve a collection of invoices.

# Connect to Client
# Lockstep provides sandbox and production environments
env = 'sbx'
client = LockstepSdk::LockstepApi.new(env)

# Add your API key here
client.with_api_key({INSERT_API_KEY})

# Querying for the first 10 invoices sorted by invoice date
invoices = client.invoices.query_invoices(
            pageSize: 100, # number of items per page
            pageNumber: 0, # page number
            filter: "invoiceDate GT 2021-01-10 AND invoiceDate LT 2021-05-10", # filter query
            include_param: "Company", # includes extra fields
            order: "invoiceDate asc" # ordering
) 

puts invoices['records']

Sample Project

Lockstep provides example code on the Fetch Invoice Sample Ruby Project page.

lockstep-sdk-ruby's People

Contributors

tspence avatar dhric avatar michaelmaxyz 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.