biila-go/laravel-api-wrapper

Provides Biila Go API wrapper for Laravel

v0.1 2021-05-12 14:44 UTC

This package is auto-updated.

Last update: 2024-09-14 15:37:31 UTC


README

This package provides a streamlined access to the Biila Go Partner API within your Laravel project.

Installation

Run the following command in the root folder of your Laravel project.

composer require biila-go/laravel-api-wrapper

Config values

BIILA_GO_API_TOKEN (required)

Token that grants access to the API.

BIILA_GO_API_IDENTITY (optional)

An optional email address that sets the user for the session. If not given, will default to the owner user of the api token.

Examples

Get reservation index

use BiilaGo\LaravelApiWrapper\Facades\BiilaGoApi;

$reservations = BiilaGoApi::getReservations()->json();
// OR
$reservations = BiilaGoApi::get('reservations')->json();

Get a single reservation

use BiilaGo\LaravelApiWrapper\Facades\BiilaGoApi;

$reservation = BiilaGoApi::getReservation('R-1')->json();
// OR
$reservation = BiilaGoApi::get('reservations/R-1')->json();

You can find information about the endpoints here.