diff --git a/docs/accounting/index.html b/docs/accounting/index.html index fa051bd4..5ad5afa4 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -20641,12 +20641,14 @@

Usage and SDK Samples

xero_client.set_token_set(user.token_set)
 
 xero_tenant_id = 'YOUR_XERO_TENANT_ID'
-if_modified_since = "2020-02-06T12:17:43.202-08:00"
-where = 'Status==#{XeroRuby::Accounting::Account::ACTIVE}'
-order = 'Name ASC'
+opts = {
+  if_modified_since: DateTime.parse('2020-02-06T12:17:43.202-08:00'),
+  where: 'Status==#{XeroRuby::Accounting::Account::ACTIVE}',
+  order: 'Name ASC'
+}
 
 begin
-  response = xero_client.accounting_api.get_accounts(xero_tenant_id, if_modified_since, where, order)
+  response = xero_client.accounting_api.get_accounts(xero_tenant_id, opts)
   return response
 rescue XeroRuby::ApiError => e
   puts "Exception when calling get_accounts: #{e}"