lanos/rezi-php

A rezi PHP class

dev-master 2018-08-09 07:59 UTC

This package is auto-updated.

Last update: 2024-05-07 15:11:12 UTC


README

Rezi PHP Class for quick integration for web devs

Hello, This is a simple php class designed to be included in composer based projects. It should allow web developers to quickly implement rezi property search functionality within their website projects.

Usage

Initiate the class via:

$rezi = new Rezi($apikey, $clientsecret, $clientID, $environment);

Authentication is already done for you on class __construct

NOTE: The $apikey variable should be set to false if you are using a client secret and ID. The class will save the returned access token to a randomly named txt file.

Call an endpoint by:

$rezi->getRezi($type, $endpoint, $pagesize = false, $pagenumber = false, $payload = false, $qstring = false)

The JSON encoded results are automatically decoded into a PHP array ready for use.

WARNING: Ensure directory indexing is OFF in apache or nginx, otherwise someone could find your access token.

New Features will be added as they become available in Rezi.

Have Fun!