invoiceninja / sdk-php

PHP wrapper for Invoice Ninja's REST API
https://www.invoiceninja.com
83 stars 41 forks source link

Update Invoice.php #46

Closed ma2t closed 4 years ago

ma2t commented 4 years ago

If you're using InvoiceNinja on a "invoices." subdomain, this str_replace is replacing the API url by "download.domain.com".

I added "/" before and after "invoices" in order to just replace the endpoint "/api/v1/invoices/" by "/api/v1/download/".

hillelcoren commented 4 years ago

Looks good, thanks!