PHP code example of rentprep / smartmove-php

1. Go to this page and download the library: Download rentprep/smartmove-php 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/ */

    

rentprep / smartmove-php example snippets






use SmartMove\SmartMove;

SmartMove::setApiKey('XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX');
SmartMove::setSandboxMode(true); //change to false for production

$referenceId = 'XXX'; // The unique ID in your system of the person who created the application
$applications = SmartMove::getApplications($referenceId);

use SmartMove\SmartMove;

SmartMove::setApiKey('XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX');
SmartMove::setSandboxMode(true); //change to false for production
SmartMove::setReferenceId('XXX');

$applications = SmartMove::getApplications();

string SmartMove::createApplication([mixed $referenceId [, array $params]]);

array SmartMove::getApplications([mixed $referenceId]);

object SmartMove::getApplication(int $applicationId [, mixed $referenceId]);

bool SmartMove::cancelApplication(int $applicationId [, mixed $referenceId]);

bool SmartMove::addApplicant(int $applicationId, mixed $email [, mixed $referenceId]);

bool SmartMove::removeApplicant(int $applicationId, mixed $email [, mixed $referenceId]);

string SmartMove::getReportUrl(int $applicationId [, mixed $referenceId]);
bash
composer