Authentication
To set up and authenticate MoneybirdApiClient against the Moneybird API, follow these steps:
-
Install the package using Composer:
Terminal window composer require sandorian/moneybird-api-php -
Obtain your API key and administration ID from the Moneybird API dashboard.
-
Create a new MoneybirdApiClient instance:
use Moneybird\MoneybirdApiClient;$moneybird = new MoneybirdApiClient('YOUR_API_KEY', 'YOUR_ADMINISTRATION_ID'); -
You can now use the
$moneybird
object to interact with the Moneybird API.
Remember to replace ‘YOUR_API_KEY’ and ‘YOUR_ADMINISTRATION_ID’ with your actual credentials.