DISQUS

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

  • Adam · 1 year ago
    I really don't have time to look much deeper, but you may be missing some foreign keys in your migrations.
  • buildmaster · 1 year ago
    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.
  • Galen King · 1 year ago
    Hey, thanks for this. I look forward to making use of it once we're ready to integrate with Xero.

    Cheers, Galen
  • Tim · 11 months ago
    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