1. Go to this page and download the library: Download mrprompt/imovelweb-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mrprompt / imovelweb-sdk example snippets
use ImovelWeb\Base\HttpClient as Client;
$token = env('IMOVELWEB_TOKEN');
$environment = env('IMOVELWEB_ENVIRONMENT'); // production | sandbox
$client = new Client($token, $environment);
use ImovelWeb\Application\Authentication;
/* @var $client \ImovelWeb\Base\HttpClient */
$authentication = new Authentication($client);
$authentication->login('CLIENT_ID', 'CLIENT_SECRET');
use ImovelWeb\Application\Authentication;
/* @var $client \ImovelWeb\Base\HttpClient */
$authentication = new Authentication($client);
$authentication->logout('CLIENT_ID', 'CLIENT_SECRET', 'ACCESS_TOKEN');