Access the Immobilienscout24 API within Laravel.
- PHP 8
- Laravel 8
composer require volldigital/laravel-immobilienscout24
Publish config file or use .ENV Variables:
IMMOSCOUT_IDENTIFIER=
IMMOSCOUT_SECRET=
IMMOSCOUT_CALLBACK_URI=http://YOUR_DOMAIN/immobilienscout/callback
IMMOSCOUT_SANDBOX=true
Set your callback url to this route:
http://YOUR_DOMAIN/immobilienscout/callback
First visit http://YOUR_DOMAIN/immobilienscout/authorize
to generate access tokens.
After that it is possible to fetch data from the api:
$server->fetchData('offer/v1.0/user/me/realestate');