PHP code example of skiddle / skiddle-php-sdk

1. Go to this page and download the library: Download skiddle/skiddle-php-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

skiddle / skiddle-php-sdk example snippets


try {
    $session = new SkiddleSDK\SkiddleSession(['api_key'=>'APIKEYGOESHERE']);
} catch (SkiddleSDK\SkiddleException $e) {
    echo $e->getMessage();
    exit();
}

$events = new SkiddleSDK\Events;
try {
    $events->setSession($session);
} catch (SkiddleSDK\SkiddleException $e) {
    echo $e->getMessage();
    exit();
}

$events->addCond('eventcode','CLUB');
$events->addCond('ticketsavailable','1);

$events->delCond('ticketsavailable');

$listings = $events->getListings();

foreach($listings->results as $result) {...}

$listing = $events->getListing(12345);

var_dump($listing);

    $listings = $events->getListings(true);

    foreach($listings['results'] as $result) {...}
    
`
git clone https://github.com/Skiddle/skiddle-php-sdk
`autoloader.php