Giter Club home page Giter Club logo

rightmove-adf's Introduction

RightmoveADF (Inc. Oversea options)

PHP library for the Rightmove Real Time Property Datafeed. It's based on frozensheep repository, but this one includes oversea features.

Build Status GitHub issues GitHub license PHP 5.4 PHP 5.5 PHP 5.6 PHP 7

Install

To install with Composer:

composer require giwrgos88/rightmove-adf

Or add to a composer.json file:

"require": {
	"giwrgos88/rightmove-adf" : "1.*"
}

Usage

All 13 of the v1.2.1 API endpoints are supported.

Example

<?php
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);
}

Rightmove will provide you with a PEM certificate/password and Network ID to use in the requests.

All values that you set will be checked against what the API expects and return exceptions if the wrong data type is set.

Todo

  • Add in option to set verbose mode on the request to help track errors with certificates.
  • Add in a pre-send validation check for required fields.

Known Issues

None.

Please submit any to the Github repo.

rightmove-adf's People

Contributors

giwrgos88 avatar

Stargazers

Activate Digital avatar Ionel Crisu avatar Ryzal Yusoff avatar

Watchers

 avatar

Forkers

thomassb p4ul2000

rightmove-adf's Issues

Can't get to pass any data

Hi, I have followed the instructions and get:

[Thu Sep 12 08:18:16 2019] [::1]:60470 [200]: /getBranchPropertyList.php

Trouble is that is it, no data. All examples the same.

I am using linux with composer, have created the public_html folder and copied the examples over.

Please could someone tell me where I have gone wrong?

Thanks

Does this still work?

Hi,

I'm running this on a mac with php 5.6 in a terminal.

I'm trying a basic example to get a list. I get the first print_r response containing the object. But nothing returns from send call. No errors either.

Thanks,
Jamie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.