2017 © Pedro PelĂĄez
 

symfony-bundle wubookapi-bundle

Bundle which helps handle wubook.net API

image

domtomproject/wubookapi-bundle

Bundle which helps handle wubook.net API

  • Monday, August 28, 2017
  • by DomTomProject
  • Repository
  • 2 Watchers
  • 0 Stars
  • 47 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

WubookAPIBundle

Notice: Bundle is stable but not every method mentioned in wubook API docs is implemented. (feel free to contribute), (*1)

WubookAPIBundle performs request to wubook.net API, it's Symfony2 bundle. This bundle completly takes the responsibility of handling token. It saves it under you cache directory and always use it. Even if you don't have token managed it will acquire it for you (of course if your config is properly filled), (*2)

Implemented methods

acquire_token, release_token, is_token_valid, provider_info,
fetch_rooms, room_images, new_reservation, fetch_bookings,
fetch_booking, fetch_rooms_values, cancel_reservation, update_avail,
update_sparse_avail, fetch_new_bookings, new_room, mod_room, del_room,
push_url, mark_bookings, push_activation, push_update_activation, push_update_url

More coming soon, (*3)

Installation

$ composer require kamwoz/wubookapi-bundle "dev-master"

In AppKernel.php, (*4)

new Kamwoz\WubookAPIBundle\WubookAPIBundle(),

Configure the bundle (all fields are mandatory):, (*5)

# app/config/config.yml
wubook_api:
    client_username: %wubook_api.client_username%
    client_password: %wubook_api.client_password%
    provider_key: ~ #ask support for it
    property_id: ~ #get it from your account
# app/config/parameters.yml
parameters:
    wubook_api.client_username: yourUsername
    wubook_api.client_password: yourPassword

Example usage (docs coming soon)

//some controller
//fetch bookings from last week
$dateFrom = new \DateTime("-1 week");
$dateTo = new \DateTime();
$bookingArrays = $this->get('wubook_api.booking_handler')->fetchBookings($dateFrom, $dateTo);

Current services which can be used

wubook_api.booking_handler
wubook_api.token_handler
wubook_api.room_handler
wubook_api.availability_handler

The Versions

28/08 2017

dev-master

9999999-dev https://github.com/kamwoz/wubookapi-bundle

Bundle which helps handle wubook.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Damian Zschille
by Tomasz Bęben
by Kamil WoĆșny

api symfony2 wubook

22/08 2017

dev-availability-handler

dev-availability-handler https://github.com/kamwoz/wubookapi-bundle

Bundle which helps handle wubook.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Damian Zschille
by Tomasz Bęben
by Kamil WoĆșny

api symfony2 wubook

20/06 2017

dev-develop

dev-develop https://github.com/kamwoz/wubookapi-bundle

Bundle which helps handle wubook.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Damian Zschille
by Tomasz Bęben
by Kamil WoĆșny

api symfony2 wubook

29/05 2017

0.1

0.1.0.0 https://github.com/kamwoz/wubookapi-bundle

Bundle which helps handle wubook.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Damian Zschille
by Tomasz Bęben
by Kamil WoĆșny

api symfony2 wubook

29/05 2017

dev-services-compatible-with-sf3

dev-services-compatible-with-sf3 https://github.com/kamwoz/wubookapi-bundle

Bundle which helps handle wubook.net API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kamil WoĆșny

api symfony2 wubook