README.textile in tlconnor-xero_gateway-1.0.1 vs README.textile in tlconnor-xero_gateway-1.0.2

- old
+ new

@@ -50,11 +50,11 @@ h3. PUT /api.xro/1.0/contact -Saves a contact record for a particular Xero customer. If the contact record does not exist (based on either ContactID or ContactNumber) then it’s created, otherwise it’s updated. +Saves a contact record for a particular Xero customer. <pre><code> contact = XeroGateway::Contact.new contact.name = "The contacts name" contact.email = "whoever@something.com" contact.phone.number = "555 123 4567" @@ -67,11 +67,21 @@ gateway.create_contact(contact) </code></pre> +h3. POST /api.xro/1.0/contact +Updates an existing contact record. +<pre><code> + contact_retrieved_from_xero.email = "something_new@something.com" + + gateway.update_contact(contact) +</code></pre> + + + h3. GET /api.xro/1.0/invoice (get_invoice_by_id) Gets an invoice record for a specific Xero organisation <pre><code> gateway.get_invoice_by_id(invoice_id) @@ -90,11 +100,12 @@ h3. GET /api.xro/1.0/invoices (get_invoices) Gets all invoice records for a particular Xero customer. <pre><code> - gateway.get_invoices(modified_since = nil) + gateway.get_invoices + gateway.get_invoices(1.month.ago) # modified since 1 month ago </code></pre> h3. PUT /api.xro/1.0/invoice @@ -126,12 +137,19 @@ gateway.create_invoice(invoice) </code></pre> - h3. GET /api.xro/1.0/accounts Gets all accounts for a specific organization in Xero. <pre><code> gateway.get_accounts +</code></pre> + + +h3. GET /api.xro/1.0/tracking + +Gets all tracking categories and their options for a specific organization in Xero. +<pre><code> + gateway.get_tracking_categories </code></pre> \ No newline at end of file