From 1f981a8c3d45096ff7dd66e327e646e0602c88f3 Mon Sep 17 00:00:00 2001 From: Henry Heath Date: Wed, 9 Jul 2025 12:51:43 +0100 Subject: [PATCH] Update README.md to correct tenant_id examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d443aeb8..9799b511 100644 --- a/README.md +++ b/README.md @@ -255,7 +255,7 @@ end # example strategy user.token_set = @token_set if !@token_set["error"] user.xero_connections = xero_client.connections -user.active_tenant_id = xero_client.last_connection +user.active_tenant_id = xero_client.last_connection['tenantId'] user.save! xero_client.accounting_api.get_invoices(xero_client.last_connection['tenantId']).invoices @@ -291,7 +291,7 @@ A full list of the SDK client's methods: require 'xero-ruby' xero_client.refresh_token_set(user_token_set) -tenant_id = xero_client.last_connection +tenant_id = xero_client.last_connection['tenantId'] # Get Accounts accounts = xero_client.accounting_api.get_accounts(tenant_id).accounts