This repository contains examples for using the Moneybird API.
- An up to date Ruby installation. To download Ruby on your computer, visit ruby-lang.org for more information.
- To check out the source code in this git repository, you need the
git
command or a git client like the Github Desktop app. - Check out this repository in a local folder in your computer.
- All files can be executed using
ruby
, therefore you need a command line like Terminal for Mac or Command Prompt for Windows. All following commands should be executed in the command line. - Install the
bundler
gem to manage dependencies:gem install bundler
- In order to make requesting the servers easier, we use a high level HTTP library for Ruby called rest-client. To install this dependency, execute
bundle install
.
First, you need to set a authentication token and administration id. Copy config_example.rb
to config.rb
and change the values in the file.
Each example in the subfolders can be run independently, for example:
bundle exec authentication/test_authentication.rb
Sheets from the workshop about using the API can be found in PITCHME.md and on Gitpitch.com: