The API of MoneyBird enables you to access the information inside a MoneyBird account. The API is RESTfull and uses XML for the data representation. On this page you can find all information about the API. Don't hesitate to contact us with your questions on info@moneybird.nl.
For Ruby-on-Rails programmers: don't forget to use ActiveResource! If you want to use the MoneyBird API with PHP, please take a look at the PHP library on GitHub.
1 require 'rubygems' 2 require 'active_resource' 3 require 'csv' 4 5 # Define the ActiveResource class for communication with the API 6 class Contact < ActiveResource::Base 7 self.site = "http://bluetools.moneybird.local" 8 self.user = "admin" 9 self.password = "testtest" 10 end 11 12 # Open a CSV file and parse the file. 13 CSV::Reader.parse(File.open("moneybird.csv", 'rb'), ";") do |row| 14 contact = Contact.new 15 contact.name = row[0] 16 contact.address1 = row[1] 17 contact.zipcode = row[2] 18 contact.city = row[3] 19 contact.email = row[4] 20 contact.customer_id = row[5] 21 if !contact.save 22 puts contact.errors.inspect 23 else 24 puts "Succes!" 25 end 26 end