appstract / laravel-moneybird

Laravel package for Moneybird
MIT License
9 stars 3 forks source link

Regarding Authorization Code Url #7

Closed coolsharad closed 4 years ago

coolsharad commented 4 years ago

Hi I have to create access token with Authorization Code , i m getting code on particular url and now i have to set authorization code and generate access token and create a invoice and you give me some example how to do it in laravel , i m pretty new in laravel

Thanks in Adavance

gizburdt commented 4 years ago

Hi,

Something like this:

$invoice = Moneybird::salesInvoice()->create();

$invoice->reference = '123456';

$invoice->save();

For more information, please have a look at picqer/moneynbird-php-client and the Moneybird docs. This package is only a wrapper for these libraries.

coolsharad commented 4 years ago

Basically i just need connection object while redirect with Authorisation Code on particular root