Download the PHP package gonebusy/gonebusy-php-client without Composer

On this page you can find all versions of the php package gonebusy/gonebusy-php-client. 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 gonebusy-php-client

Build Status PHP version

PHP SDK for the Gonebusy REST API

Sandbox

We have a Sandbox environment to play with!

To point at the Sandbox, just use sandbox.gonebusy.com instead of where you see beta.gonebusy.com referenced, including where to create an account to retrieve your API Key.

The Sandbox environment is completely separate from the Live site - that includes meaning your Sandbox API Key will not work in the Live environment.

How to Use

Summary of Gonebusy objects

(more info on the Developer Portal):

API Key

If testing with Sandbox, Signup/Logon at https://sandbox.gonebusy.com/login.

If using Production site, Signup/Logon at https://beta.gonebusy.com/login.

Once logged in, navigate to the API Key page and request an API key.

Initialization/Authentication

In order to setup authentication and initialization of the API client, you need the following information.

Parameter Description
authorization Set Authorization to "Token your API key"

API client can be initialized as following.


How to Build

Composer Install

[For Windows Users Only] Configuring CURL Certificate Path in php.ini

CURL used to include a list of accepted CAs, but no longer bundles ANY CA certs. So by default it will reject all SSL certificates as unverifiable. You will have to get your CA's cert and point curl at it. The steps are as follows:

  1. Download the certificate bundle (.pem file) from https://curl.haxx.se/docs/caextract.html on to your system.
  2. Add curl.cainfo = "PATH_TO/cacert.pem" to your php.ini file located in your php installation. “PATH_TO” must be an absolute path containing the .pem file.

How to Test

Unit tests in this SDK can be run using PHPUnit. The test cases are located in the test/Controllers/ dir.

  1. Make sure you've installed the dependencies using composer including the require-dev dependencies.
  2. Run vendor/bin/phpunit from command line to execute the test suite. See https://phpunit.de/manual/current/en/textui.html for info on test output format as well as more command-line options.
  3. Optionally, to check the code standards you may run vendor/bin/phpcs (See phpcs.xml). (No output means no problems.)

Class Reference

List of Controllers

Class: BookingsController

Get singleton instance

The singleton instance of the class can be accessed from the API Client.

Method: getBookings

Return list of Bookings.

Parameters

Parameter Tags Description
authorization A valid API key, in the format 'Token API_KEY'
page Page offset to fetch.
perPage Number of results to return per page.
states Comma-separated list of Booking states to retrieve only Bookings in those states. Leave blank to retrieve all Bookings.
userId Retrieve Bookings for Resources/Services owned by this User Id. You must be authorized to manage this User Id.
bookerId Retrieve Bookings made by Booker Id.

Example Usage

Errors

Error Code Error Description
401 Unauthorized/Missing Token
403 Forbidden
404 Not Found
0 Unexpected error

Method: createBooking

Create a Booking with params

Parameters

Parameter Tags Description
authorization A valid API key, in the format 'Token API_KEY'
createBookingBody the content of the request

Example Usage

Errors

Error Code Error Description
400 Bad Request
401 Unauthorized/Missing Token
403 Forbidden
422 Unprocessable Entity
0 Unexpected error

Method: getBookingById

Return a Booking by id.

Parameters

Parameter Tags Description
authorization A valid API key, in the format 'Token API_KEY'
id TODO: Add a parameter description

Example Usage

Errors

Error Code Error Description
400 Bad Request
401 Unauthorized/Missing Token
403 Forbidden
404 Not Found
0 Unexpected error

Method: updateBookingById

Update a Booking by id

Parameters

Parameter Tags Description
authorization A valid API key, in the format 'Token API_KEY'
id TODO: Add a parameter description
updateBookingByIdBody the content of the request

Example Usage

php function cancelBookingById( $authorization, $id, $cancelRecurring = null, $date = null, $endDate = null) Required Required Optional Optional Optional CategoriesController Required Optional DefaultValue Optional DefaultValue Optional Required Optional Required Required PricingModelsController Required Optional DefaultValue Optional DefaultValue Optional Required Optional Required Required Required Required Optional ResourcesController Required Optional DefaultValue Optional DefaultValue Optional Required Optional Required Optional DefaultValue Optional DefaultValue Required Required Required Required Optional Required Required SchedulesController Required Optional DefaultValue Optional DefaultValue Optional Required Optional Required Required Required Required Required Required Optional Required Required Required Optional Required Required Required SearchController Required Required ServicesController Required Optional DefaultValue Optional ``` DefaultValue | Number of results to return per page. | | userId | Optional | Retrieve Services provided by the User specified by Id. You must be authorized to manage this User Id. |

Example Usage

Errors

Error Code Error Description
401 Unauthorized/Missing Token
403 Forbidden
404 Not Found
0 Unexpected error

Method: createService

Create a Service with params.

Parameters

Parameter Tags Description
authorization Required A valid API key, in the format 'Token API_KEY'
createServiceBody Optional the content of the request

Example Usage

Errors

Error Code Error Description
400 Bad Request
401 Unauthorized/Missing Token
403 Forbidden
404 Not Found
422 Unprocessable Entity
0 Unexpected error

Method: getServiceAvailableSlotsById

Return available times for a Service.

Parameters

Parameter Tags Description
authorization Required A valid API key, in the format 'Token API_KEY'
id Required TODO: Add a parameter description
date Optional Date to check for availability. Either this field or a date range employing start_date and end_date must be supplied. If date is provided, start_date/end_date are ignored. Several formats are supported: '2014-10-31', 'October 31, 2014'.
endDate Optional End Date of a range to check for availability. If supplied, date must not be supplied and start_date must be supplied. Several formats are supported: '2014-10-31', 'October 31, 2014'.
startDate Optional Start Date of a range to check for availability. If supplied, date must not be supplied and end_date must be supplied. Several formats are supported: '2014-10-31', 'October 31, 2014'.

Example Usage

Errors

Error Code Error Description
400 Bad Request
401 Unauthorized/Missing Token
403 Forbidden
404 Not Found
0 Unexpected error

Method: getServiceById

Return a Service by id.

Parameters

Parameter Tags Description
authorization Required A valid API key, in the format 'Token API_KEY'
id Required TODO: Add a parameter description

Example Usage

Errors

Error Code Error Description
400 Bad Request
401 Unauthorized/Missing Token
403 Forbidden
404 Not Found
0 Unexpected error

Method: updateServiceById

Update a Service with params.

Parameters

Parameter Tags Description
authorization Required A valid API key, in the format 'Token API_KEY'
id Required TODO: Add a parameter description
updateServiceByIdBody Optional the content of the request

Example Usage

Errors

Error Code Error Description
400 Bad Request
401 Unauthorized/Missing Token
403 Forbidden
404 Not Found
422 Unprocessable Entity
0 Unexpected error

Method: deleteServiceById

Delete a Service by id

Parameters

Parameter Tags Description
authorization Required A valid API key, in the format 'Token API_KEY'
id Required TODO: Add a parameter description

Example Usage

Errors

Error Code Error Description
400 Bad Request
401 Unauthorized/Missing Token
403 Forbidden
404 Not Found
0 Unexpected error

Back to List of Controllers

Class: UsersController

Get singleton instance

The singleton instance of the UsersController class can be accessed from the API Client.

Method: getUsers

Return all Users that your account has access to. Includes your own User as well as any Users for which you are the Account Manager.

Parameters

Parameter Tags Description
authorization Required A valid API key, in the format 'Token API_KEY'
page Optional DefaultValue Page offset to fetch.
perPage Optional DefaultValue Number of results to return per page.

Example Usage

Errors

Error Code Error Description
400 Bad Request
401 Unauthorized/Missing Token
403 Forbidden
0 Unexpected error

Method: createUser

Create a User

Parameters

Parameter Tags Description
authorization Required A valid API key, in the format 'Token API_KEY'
createUserBody Optional the content of the request

Example Usage

Errors

Error Code Error Description
400 Bad Request
401 Unauthorized/Missing Token
403 Forbidden
422 Unprocessable Entity
0 Unexpected error

Method: getUserById

Return a User by id.

Parameters

Parameter Tags Description
authorization Required A valid API key, in the format 'Token API_KEY'
id Required TODO: Add a parameter description

Example Usage

Errors

Error Code Error Description
400 Bad Request
401 Unauthorized/Missing Token
403 Forbidden
404 Not Found
0 Unexpected error

Method: updateUserById

Update a User by id, with params.

Parameters

Parameter Tags Description
authorization Required A valid API key, in the format 'Token API_KEY'
id Required TODO: Add a parameter description
updateUserByIdBody Optional the content of the request

Example Usage

Errors

Error Code Error Description
400 Bad Request
401 Unauthorized/Missing Token
403 Forbidden
404 Not Found
422 Unprocessable Entity
0 Unexpected error

Back to List of Controllers


All versions of gonebusy-php-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
ext-curl Version *
ext-json Version *
ext-mbstring Version *
mashape/unirest-php Version ~3.0.1
apimatic/jsonmapper Version ~1.2.0
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 gonebusy/gonebusy-php-client contains the following files

Loading the files please wait ....