Git Product home page Git Product logo

rezdy-api-v1's Introduction

Rezdy API PHP SDK

Latest Stable Version Latest Unstable Version License

This library utilizes GuzzlePHP

This library utilizes Carbon

Installing via Composer

Composer is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project. In order to use the Rezdy API PHP SDK through composer, you must add "bploeger/rezdy-api-v1" as a dependency in your project's composer.json file.

 {
    "require": {
        "bploeger/rezdy-api-v1": "^1.0"
    }
 }

Documentation

The source documentation is hosted at https://github.com/bploeger/rezdy-api-v1/wiki

API Documentation provided by Rezdy is located at https://developers.rezdy.com/rezdy-api/reference

Usage

The RezdyAPI class contains the underlying services that hold the methods that use the API.

use Rezdy\RezdyAPI;
use Rezdy\Requests\SimpleSearch;

// Initialize the API
$rezdyAPI = new RezdyAPI('your api key');

// Set the search parameters
$searchParams =	[
	'search' => 'Smith',
	'limit'  => 50,
	'offset' => 0 
];

// Create the Simple Search Request
$search = new SimpleSearch($searchParams);

// Send the request to the API
$response = $this->rezdyAPI->customers->search($search);

// View the Response
echo $response;

Minimum Requirements

Use of this library requires PHP 7.1.3+, and PHP cURL extension (http://php.net/manual/en/book.curl.php)

rezdy-api-v1's People

Contributors

bploeger avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rezdy-api-v1's Issues

Quantities for multiple items / participants

Hi,
I encounter some difficulties when i try to do a booking with multiple items.
There's no keys inside the BookingItemQuantity class for indicate wich item is impact by the quantity.
And for the participants i encounter the same deal, but even with 1 item the array is not take at all when i execute the booking->create.

Can you explain me how to add multiple quantitites and ane xemple how add the participants to each one ?
Thanks a lot

Search customers, bug encounter

Hi,
Thanks first for your repository.
I encounter some difficulties with the customers part.
When i try your script for search specific customer or all, i have this issue :

Type: TypeError Message: Argument 1 passed to Rezdy\Services\CustomerServices::search() must be an instance of Rezdy\Requests\SimpleSearch, instance of Rezdy\Requests\Customer given

But i really use exactly your exemple for search :

`
use Rezdy\RezdyAPI;
use Rezdy\Requests\SimpleSearch;

// Initialize the API
$rezdyAPI = new RezdyAPI('xxxxxx');

$searchParams = [
'search' => 'Moore' ];

// Create a SimpleSearch request
$search = new Customer($searchParams);

// Send the Customer request to the API
$response = $rezdyAPI->customers->search($search);

// View the response
echo $response;
`

Is there something i did wrong ?

Thanks by advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.