PHP code example of giwrgos88 / rightmove-adf
1. Go to this page and download the library: Download giwrgos88/rightmove-adf 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/ */
giwrgos88 / rightmove-adf example snippets
use Frozensheep\RightmoveADF\RightmoveADF;
//create the RightmoveADF object
$objRightmoveADF = new RightmoveADF(CERT_FILE, CERT_PASS, RightmoveADF::TEST);
//$objRightmoveADF = new RightmoveADF(CERT_FILE, CERT_PASS, RightmoveADF::LIVE);
//create a request
$objRequest = $objRightmoveADF->createRequest(RightmoveADF::GetBranchPropertyList);
//set the details for the request
$objRequest->network->network_id = NETWORK_ID;
$objRequest->branch->branch_id = BRANCH_ID;
//send the request
$objResponse = $objRightmoveADF->send($objRequest);
if($objResponse->success){
//
//do something with the response
//
}else{
print_r($objResponse->errors);
}