2017 © Pedro Peláez
 

library booliwrapper

A lightweight API wrapper for the Booli API written in PHP.

image

jcbl/booliwrapper

A lightweight API wrapper for the Booli API written in PHP.

  • Sunday, October 1, 2017
  • by jcbl
  • Repository
  • 1 Watchers
  • 2 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Booli API wrapper

A lightweight API wrapper for the Booli API written in PHP., (*1)

Build Status, (*2)

Installing

composer require jcbl/booliwrapper

Basic usage

Initialize a new instance of the Booli wrapper class. Provide your key and caller id. I prefer to do it with .env., (*3)

require_once __DIR__ . '/vendor/autoload.php';

use Jcbl\Booliwrapper\Booli;
use Dotenv\Dotenv;

$dotenv = new Dotenv(__DIR__);
$dotenv->load();

$booli = new Booli(getenv('CALLER_ID'), getenv('API_KEY'));

After that you can make listing calls like this., (*4)

$listingAll = $booli->listing()->all([
    'q' => 'stockholm',
    'limit' => 3,
    'filters' => [
        'maxListPrice' => 2000000
    ]
]);

$listingSingle = $booli->listing()->single(BOOLI_ID);

echo $listingAll;
echo $listingSingle;

To apply filters, pass filters as a second argument as an associative array. The get method accesses the response property, returning a json response., (*5)

Available methods

Endpoint Method name
listings listing()->all()
listings listing()->single()
sold sold()->all()
sold sold()->single()
area area()->get()

The Versions

01/10 2017

dev-master

9999999-dev

A lightweight API wrapper for the Booli API written in PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

api wrapper booli

01/10 2017

dev-dev

dev-dev

A lightweight API wrapper for the Booli API written in PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

api wrapper booli

01/10 2017

1.0.1

1.0.1.0

A lightweight API wrapper for the Booli API written in PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

api wrapper booli

30/09 2017

1.0

1.0.0.0

A lightweight API wrapper for the Booli API written in PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

api wrapper booli

24/09 2017

dev-featureOverloading

dev-featureOverloading

A lightweight API wrapper for the Booli API written in PHP.

  Sources   Download

MIT

The Requires

 

The Development Requires

api wrapper booli