maxdmyers / php-ready-theatre-systems

PHP API Client for Ready Theatre Systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php-ready-theatre-systems

PHP API Client for Ready Theatre Systems, LLC – Open Interface API

use SudiptoChoudhury\Rts\Api;

$rts = new Api([
    'theatre' => '<<theatre number>>'
    'username' => '<<password>>',
    'password' => '<<password>>',
]);


$result = $rts->getShowTime(['ShowSales' => 1, 'ShowAvalTickets' => 1, 'ShowSaleLinks' => 1]); 

$result = $rts->checkIfSoldOut([
    'Data' => [
        "Packet" => [
            'PerformanceID' => '018129000023'
        ]
    ]
]);

$result = $rts->getGiftCardInformation([
    'Data' => [
        "Packet" => [
            'GiftCards' => [
                'GiftCard' => '1234510813486422'
            ]
        ]
    ]

]);
 
 

Installation

Requirements

  • Any flavour of PHP 7.1+ should do

Install With Composer

You can install the library via Composer by adding the following line to the require block of your composer.json file (replace dev-master with latest stable version):

"sudiptochoudhury/php-ready-theatre-systems": "dev-master"

or run the following command:

composer require sudiptochoudhury/php-ready-theatre-systems

Setting up

All you need to do is to pass theatre id, username and password to the constructor. Additionally, you can set a logger to log

use SudiptoChoudhury\Rts\Api;

new Api([
    'theatre' => '<<theatre number>>'
    'username' => '<<password>>',
    'password' => '<<password>>',
    'log' => ['file' => 'rts.log', 'path' => '/your/log/path']
]);

How to use

Next, call the desired method from the table given below. In most methods you may need to pass parameters. The parameters are to be passed as an associative array.

Examples:

$rts = new Api([
    'theatre' => '<<theatre number>>'
    'username' => '<<password>>',
    'password' => '<<password>>',
]);


$result = $rts->getShowTime(['ShowSales' => 1, 'ShowAvalTickets' => 1, 'ShowSaleLinks' => 1]); 

$result = $rts->checkIfSoldOut([
    'Data' => [
        "Packet" => [
            'PerformanceID' => '018129000023'
        ]
    ]
]);

$result = $rts->getGiftCardInformation([
    'Data' => [
        "Packet" => [
            'GiftCards' => [
                'GiftCard' => '1234510813486422'
            ]
        ]
    ]

]);
 

Available API Methods

Method & Endpoint Parameters Description
getShowTimes(array)
[POST] ShowTimeXml
ShowAvalTickets ShowSales ShowSaleLinks Get all Performance Schedule
getGiftCardInformation(array)
[POST] GiftInformation
buyGiftCard(array)
[POST] Buy
refillGiftCard(array)
[POST] Buy
registerLoyaltyCard(array)
[POST] GIFTINFORMATION
checkIfSoldOut(array)
[POST] CheckSoldOut
hasRedeemed(array)
[POST] CheckRedeem
verifyTransaction(array)
[POST] VERIFYTRANSACTION
refund(array)
[POST] Refund
reverse(array)
[POST] ReverseTransaction
payUsingHostedCheckout(array)
[POST] CreatePayment
buyTicket(array)
[POST] CreatePayment
getAllSeatLayouts(array)
[POST] GetSeatLayouts
getSeatLayout(array)
[POST] GETSEATPLANFORPERF
checkPickedSeat(array)
[POST] CHECKSEATPICKS
getSeatChart(array)
[POST] SeatChart
holdSeats(array)
[POST] HoldSeats
releaseSeats(array)
[POST] HoldSeats
checkSalesTaxOnConcessionSales(array)
[POST] Buy
buyConcessionItems(array)
[POST] Buy

About

PHP API Client for Ready Theatre Systems

License:MIT License


Languages

Language:PHP 54.3%Language:JavaScript 32.8%Language:CSS 7.6%Language:Vue 2.9%Language:HTML 2.2%Language:Batchfile 0.3%