2017 © Pedro Peláez
 

library genesislive

Genesis API Wrapper

image

dwmsw/genesislive

Genesis API Wrapper

  • Wednesday, October 29, 2014
  • by darylldoyle
  • Repository
  • 2 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

dwmsw/genesislive

Build Status Code Climate Test Coverage, (*1)

Description

dwmsw/genesislive is a library for interacting with the Radical Solutions Genesis API., (*2)

It aims to make interacting with the API as easy as possible., (*3)

To Do

  • Add more tests!
  • Get an API key to use with tests so we don't have to check for 400 errors form the API

Usage

Usage is pretty easy, create a new instance of the class you require and then pass in the parameters required., (*4)

Search, (*5)

require('vendor/autoload.php');

$api = new dwmsw\genesislive\Search('YOUR API KEY HERE');

// Set parameters
$params['division'] = 'Sales';
$params['priceto']  = 500000;
$params['type']     = 'House';
$params['BedroomsFrom'] = 3;
$params['BedroomsTo'] = 4;

// Make request
$api->setQueryString($params);
$api->doSearch();
$api->sendRequest();

// Get properties
$properties = $api->getProperties();

Single Property, (*6)

require('vendor/autoload.php');

$api = new dwmsw\genesislive\Single('YOUR API KEY HERE');

// Set parameters
$params['PropertyID'] = $_GET['PropertyID'];

// Make request
$api->setQueryString($params);
$api->doSearch();
$api->sendRequest();

// Get property data
$property = $api->getProperty();

Images, (*7)

    // Grab the URL
    $src = dwmsw\genesislive\Image::getImageURL('MediaKey', 'Width', 'Height');

    // Print the Image
    printf('<img src="%s" alt="">', $src);

Getting Involved

  • Open an issue with a feature you'd like
  • Make a PR
  • Write any tests that may be missing!

The Versions

29/10 2014

dev-master

9999999-dev https://github.com/dwmsw/genesislive/

Genesis API Wrapper

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

radical solutions genesislive genesis api

29/10 2014

dev-version-2

dev-version-2 https://github.com/dwmsw/genesislive/

Genesis API Wrapper

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

radical solutions genesislive genesis api

29/10 2014

2.0.0

2.0.0.0 https://github.com/dwmsw/genesislive/

Genesis API Wrapper

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

radical solutions genesislive genesis api

28/10 2014

1.0.4

1.0.4.0 https://github.com/dwmsw/genesislive/

Genesis API Wrapper

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

radical solutions genesislive genesis api

25/10 2014

1.0.3

1.0.3.0 https://github.com/dwmsw/genesislive/

Genesis API Wrapper

  Sources   Download

GPL-3.0

The Requires

  • php >=5.4.0

 

The Development Requires

radical solutions genesislive genesis api

25/10 2014

1.0.2

1.0.2.0 https://github.com/dwmsw/genesislive/

Genesis API Wrapper

  Sources   Download

GPL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

radical solutions genesislive genesis api

24/10 2014

1.0.1

1.0.1.0 https://github.com/dwmsw/genesislive/

Genesis API Wrapper

  Sources   Download

GPL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

radical solutions genesislive genesis api

24/10 2014

1.0.0

1.0.0.0 https://github.com/dwmsw/genesislive/

Genesis API Wrapper

  Sources   Download

GPL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

radical solutions genesislive genesis api