Download the PHP package rebelcode/rcmod-eddbk-rest-api without Composer

On this page you can find all versions of the php package rebelcode/rcmod-eddbk-rest-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package rcmod-eddbk-rest-api

RebelCode - EDD Bookings REST API

Build Status Code Climate Test Coverage Latest Stable Version

A RebelCode module that provides the REST API used in EDD Bookings.

REST API Details

1. Bookings

Retrieving Booking Info

Retrieves a booking by ID.

The response will contain an object with the following properties:

Property Type Description Values
id integer The ID of the booking positive non-zero integer
start integer The start time of the booking in the format Y-M-D H:i:s integer
end integer The end time of the booking in the format Y-M-D H:i:s integer
status string The current status of the booking "", "draft", "in_cart", "pending", "approved", "rejected", "scheduled", "cancelled", "completed"
service service The service for which the booking was made Service object
resource integer The ID of the resource for which the booking was made positive non-zero integer
client client The client for the booking Client object or null
clientTzName string The client's timezone name any timezone name or null
clientTzOffset integer The client's UTC timezone offset in seconds, at the start time of the booking integer or null
payment integer The payment number integer or null
notes string Admin booking notes string

Query Bookings

Multiple field and value pairs may be provided to narrow the query. The following table lists the available query fields and how a provided value is compared:

Field Description Value Type
id The booking with the given ID integer
start The bookings that start at or after the given UTC timestamp integer
end The bookings that end at or before the given UTC timestamp integer
service The bookings made for the service with the given ID positive non-zero integer
resource The bookings made for the resource with the given ID positive non-zero integer
client The bookings made for the client with the given ID positive non-zero integer
payment The bookings associated with the payment with the given ID positive non-zero integer
status The booking statuses to filter by comma separated list (without spaces!) of status names

The following additional filters are also available:

Filter Description Value Type Default
numItems The maximum number of items to receive per page positive non-zero integer 20
page The page number positive non-zero integer 1

The response is an object with 3 keys: items, count and statuses. Example:

The statuses counts are calculated independently from any query filters.

Creating Bookings

Creates a new booking and responds with the booking object. The following table lists the available fields:

Property Type Description Required?
start integer The start time of the booking as a UTC timestamp
end integer The end time of the booking as a UTC timestamp
service positive non-zero integer The ID of the service for which the booking will be made
resource positive non-zero integer The ID of the resource for which the booking will be made
transition "draft" or "cart" The initial transition to apply to the booking
client positive non-zero integer The ID of the client for which the booking will be made
clientTz string The name of the client's timezone
payment integer or null The payment number
notes string Admin booking notes

Updating Bookings

Updates a booking. The following table lists the available fields for updating:

Property Type Description
start integer The start time of the booking as a UTC timestamp
end integer The end time of the booking as a UTC timestamp
service positive non-zero integer The ID of the service for which the booking will be made
resource positive non-zero integer The ID of the resource for which the booking will be made
client positive non-zero integer The ID of the client for which the booking will be made
clientTz string The name of the client's timezone
payment integer The payment number integer or null
notes string Admin booking notes string

Deleting Bookings

Deletes the booking with the given ID.


All versions of rcmod-eddbk-rest-api with dependencies

PHP Build Version
Package Version
Requires php Version ^5.4 | ^7.0
rebelcode/modular Version ^0.1-alpha1
rebelcode/booking-transitioner Version ^0.2-alpha2
rebelcode/entity-manager-interface Version ^0.1-alpha2
rebelcode/transformers Version ^0.1-alpha1
rebelcode/wp-nonce Version ^0.1
dhii/data-object-abstract Version ^0.1-alpha1
dhii/cqrs-resource-model-interface Version ^0.2-alpha1
dhii/expression-interface Version ^0.1 | ^0.2
dhii/iterator-base Version ^0.1-alpha3
dhii/iterator-helper-base Version ^0.1-alpha2
dhii/validation-base Version ^0.2-alpha1
dhii/normalization-helper-base Version ^0.1-alpha2
dhii/sql-interface Version ^0.1-alpha1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rebelcode/rcmod-eddbk-rest-api contains the following files

Loading the files please wait ....