2017 © Pedro Peláez
 

library api-client

Realestate.co.nz Api Client

image

realestateconz/api-client

Realestate.co.nz Api Client

  • Thursday, August 20, 2015
  • by kengolovin
  • Repository
  • 17 Watchers
  • 1 Stars
  • 1,105 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Getting Started

The easiest way to work with the realestate.co.nz api client is when it's installed as a Composer package inside your project., (*1)

If you're not familiar with Composer, please see http://getcomposer.org/., (*2)

  1. Add realestateconz/api-client to your application's composer.json., (*3)

    {
        ...
        "require": {
            "realestateconz/api-client": "dev-master"
        },
        ...
    }
  2. Run composer install., (*4)

  3. If you haven't already, add the Composer autoload to your project's initialization file. (example), (*5)

    require 'vendor/autoload.php';

Creating API Signatures

GET Request

$client = new RealestateCoNz_Api_Client('PRIVATE_KEY', 'PUBLIC_KEY', 1);
$api_path = '/listings/';
$query_params = array('format' => 'full');
$api_signature = $client->createSignature($api_path, $query_params);

POST Request

$client = new RealestateCoNz_Api_Client('PRIVATE_KEY', 'PUBLIC_KEY', 1);
$api_path = '/listings/100000000/agent-enquiry/';
$query_params = array();
$post_values = array('email' => 'example@example.com', 'phone' => '000000000', 'text' => 'test', 'name' => 'Test');
$api_signature = $client->createSignature($api_path, $query_params, $post_values);

Note: all post requests must be sent with the following request header:, (*6)

Content-Type: application/x-www-form-urlencoded, (*7)

The Versions

20/08 2015

dev-master

9999999-dev http://www.github.com/realestateconz/realestate-api-php-client/

Realestate.co.nz Api Client

  Sources   Download

MIT

api client property realestate.co.nz listings

20/08 2015

1.0.0

1.0.0.0 http://www.github.com/realestateconz/realestate-api-php-client/

Realestate.co.nz Api Client

  Sources   Download

MIT

api client property realestate.co.nz listings

29/07 2014

dev-4004-api-admin

dev-4004-api-admin http://www.github.com/realestateconz/realestate-api-php-client/

Realestate.co.nz Api Client

  Sources   Download

MIT

api client property realestate.co.nz listings