1. Go to this page and download the library: Download meethour/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/ */
meethour / php-sdk example snippets
composer ('./vendor/autoload.php');
class ScheduleMeeting {
public ?string $agenda;
public ?array $attend;
public string $default_recording_storage;
public ?int $duration_hr;
public ?int $duration_min;
public ?int $enable_pre_registration;
public ?string $endBy;
public ?string $end_date_time;
public ?int $end_times;
public ?array $groups;
public ?array $hostusers;
public ?string $instructions;
public ?int $is_recurring;
public ?int $is_show_portal;
public ?string $meeting_agenda;
public string $meeting_date;
public string $meeting_meridiem;
public string $meeting_name;
public string $meeting_time;
public ?string $meeting_topic;
public ?string $monthlyBy;
public ?string $monthlyByDay;
public ?string $monthlyByWeekday;
public ?string $monthlyByWeekdayIndex;
public ?array $options;
public string $passcode;
public ?string $recurring_type;
public ?int $repeat_interval;
public int $send_calendar_invite;
public string $timezone;
public ?int $weeklyWeekDays;
}
$body = new ScheduleMeeting($meeting_name, $passcode, $meeting_time, $meeting_meridiem, $meeting_date, $timezone);
MHApiServices.scheduleMeeting($token, $body);
MHApiServices.userDetails($token);
MHApiServices.timezone($token);
use MeetHourApp\Services\MHApiService;
use MeetHourApp\Types\Login;
use MeetHourApp\Types\ScheduleMeeting;
$meetHourApiService = new MHApiService();
$login = new Login($client_id, $client_secret, $grant_type, $username, $password);
$loginResponse = $meetHourApiService->login($login);
$scheduleBody = new ScheduleMeeting("Quick Meeting", "123456", date('h:i'), 'PM', date('d-m-Y'), 'Asia/Kolkata'); // You can give
$response = $meetHourApiService->scheduleMeeting($loginResponse->access_token, $scheduleBody);
var_dump($response);
$test = new ViewMeeting($meeting_id);
$response = $meetHourApiService->timezone($loginResponse->access_token);
var_dump($response);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.