PHP code example of ciaranpflanagan / webinarjam-api

1. Go to this page and download the library: Download ciaranpflanagan/webinarjam-api 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/ */

    

ciaranpflanagan / webinarjam-api example snippets


ciaranpflanagan\WebinarJamApi\WebinarJamServiceProvider::class

use ciaranpflanagan\WebinarJamApi\WebinarJam;

$webinar = new WebinarJam('WEBINARJAM_API_KEY');

$webinar->webinars();

/**
 * @param int $webinar_id
 */
$webinar->webinarDetails($webinar_id);

/**
 * @param int $webinar_id
 * @param array $details
 */
$details = array(
    "first_name" => "",
    "last_name" => "", // Optional
    "email" => "",
    "schedule" => 0,
    "ip_address" => "", // Optional
    "phone_country_code" => "", // Optional
    "phone" => "", // Optional
);

$webinar->register($webinar_id, $details);

/**
 * @param int $webinar_id
 */
$webinar->webinarSchedule($webinar_id);

// or
$webinar->webinarDetails($webinar_id);
$webinar->webinarSchedule();

[
    [
        "date" => "2021-03-25 09:00",
        "schedule" => 99,
        "comment" => "Every day, 9:00 AM",
    ],
    [
        "date" => "2021-03-52 09:00",
        "schedule" => 99,
        "comment" => "Every day, 9:00 AM",
    ],
]