DISQUS

DISQUS Hello! bgeek.net is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Connecting to the Xero API: Part 1 [Ruby, GET, Contacts]

Started by buildmaster · 11 months ago

Hey hey hey, so I finally get an excuse to post some ruby code, yay!

As part of my foray into the Xero API I wanted to get a feel for how easy it would be to connect from non .net languages and as my Ruby was getting a bit rusty I thought I’d pull out [...] ... Continue reading »

4 comments

  • I really don't have time to look much deeper, but you may be missing some foreign keys in your migrations.
  • true phone and addresses need to hold the contact id.

    Anyway in my follow up post with HTTParty you don't need to rely on these migrations and the API is much much easier.
  • Hey, thanks for this. I look forward to making use of it once we're ready to integrate with Xero.

    Cheers, Galen
  • I've taken a slightly different approach and written a xero_gateway GEM.

    You can do stuff like
    result xero_gateway.get_invoice("INV-0001")
    if result.success?
    result.invoice.phone.number
    end

    The GEM can be found here
    http://github.com/tlconnor/xero_gateway

Add New Comment

Returning? Login