This repository contains the source code for an example implementation of the Ruby REST API client for xTuple ERP. This client uses the Google API's client library for Ruby.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
restclient.rb
sample.env

README.md

xTuple ERP Ruby REST API Client Example

xTuple ERP Ruby REST API Client Example using the Google APIs Client Library for Ruby.

Prerequisites

  • Ruby 2.0.0+

Since the request to get an access token will be made over SSL, you will need to make sure that your environment has SSL setup properly.

Setup Authentication

This client uses OAuth 2.0 with service accounts.

Running the Example

$ bundle install
$ bundle exec ruby restclient.rb

Output

This example prints a basic list of xTuple Contacts to the console.

License

Apache License, Version 2.0

Copyright (c) 2012-2013 xTuple http://www.xtuple.com/