PHP code example of bladeaweb / gotowebinar

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

    

bladeaweb / gotowebinar example snippets


$get = $client->createRequest('GET', "organizers/{$organizer_key}/webinars")->execute();
$data = $get->getDecodedBody();

$post_data = array(
  'subject' => 'TEST',
  'description' => 'Test API integration',
  'times' => array(
    array(
      'startTime' => '2018-05-12T15:00:00Z',
      'endTime' => '2018-05-12T16:00:00Z',
    )
  ),
  'timeZone' => 'Europe/Kiev',
);

$new = $client->createRequest('POST', "organizers/{$organizer_key}/webinars")
  ->attachBody($post_data)
  ->execute();