Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisDebonnet committed Oct 4, 2017
1 parent 2c24567 commit 14360b3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# funkytime/yuki
A php connector for Yuki's Sales API (subset), intended to create Sales Invoices.
A php connector for Yuki's Sales and Accounting API (subsets), intended to create Sales Invoices and get back payment status.

```php
$invoice = [
Expand All @@ -21,5 +21,12 @@ $invoice = [
]
];
];
new \FunkyTime\Yuki($api_key)->ProcessInvoice($invoice);
$YukiSales = new \FunkyTime\Yuki($api_key, 'sales');
$YukiSales->ProcessInvoice($invoice);
```

```php
$YukiAccounting = new \FunkyTime\Yuki($api_key, 'accounting');
$status = $YukiAccounting->GetInvoiceBalance($inv_reference);
// Result: an array with keys 'openAmount' and 'originalAmount'
```

0 comments on commit 14360b3

Please sign in to comment.