paravibe / gotowebinar
The GoToWebinar API wrapper for PHP
Installs: 25 058
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 4
Open Issues: 1
Requires
- php: ^8.0 || ^7.0
- guzzlehttp/guzzle: ^7.0 || ^6.0
Requires (Dev)
- phpunit/phpunit: ^5.5
This package is auto-updated.
Last update: 2024-11-21 15:16:14 UTC
README
Installation
composer require paravibe/gotowebinar
How to use
Initialize client
$client = new \LogMeIn\GoToWebinar\Client($access_token, $values);
Where $access_token
is a token retrived during authorization procedure - https://goto-developer.logmeininc.com/how-get-access-token-and-organizer-key
and $values
are response data that contain:
- account_key
- account_type
- firstName
- lastName
- organizer_key
Use any method described here https://goto-developer.logmeininc.com/content/gotowebinar-api-reference-v2
by passing proper HTTP method and endpoint to createRequest()
method.
GET/DELETE methods
$get = $client->createRequest('GET', "organizers/{$organizer_key}/webinars")->execute(); $data = $get->getDecodedBody();
POST/PUT methods
$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();