PHP Classes

Citrix GoToWebinar PHP Library: Manage Webinars using GotoWebinar Citrix API

Recommend this page to a friend!

  Author Author  
Picture of Zakir Hyder
Name: Zakir Hyder <contact>
Classes: 3 packages by
Country: Bangladesh Bangladesh
Age: 38
All time rank: 229932 in Bangladesh Bangladesh
Week rank: 503 Up12 in Bangladesh Bangladesh Up


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can manage Webinars using GotoWebinar Citrix API.

It can send HTTP requests to Citrix GotoWebinar API Web server to first obtain authorization to access on behalf of user of that service using OAuth.

The class can use the obtained access token to send other requests to execute operations to manage Webinars like: get the list of Webinars, get the users registered to a Webinar and register an user of a Webinar.

Details
[![Latest Stable Version](https://poser.pugx.org/zakir-hyder/citrix-gotowebinar-php-library/v/stable)](https://packagist.org/packages/zakir-hyder/citrix-gotowebinar-php-library)[![License](https://poser.pugx.org/zakir-hyder/citrix-gotowebinar-php-library/license)](https://packagist.org/packages/zakir-hyder/citrix-gotowebinar-php-library) Citrix's GoToWebinar PHP Library ========================== The GoToWebinar PHP Library is typically used to perform operations like create registrant of webinar, get the login url, list webinars etc. the PHP Library greatly simplifies the process of authentication and authorizing users for your app. This lib needs JSON and CURL PHP extension. You will need an API key to initialize the Library, which you can obtain from https://developer.citrixonline.com/sdm/myprofile. Apply for Developer Key on https://developer.citrixonline.com/sdm/set_app/Production. Be sure to check GoToWebinar as Product API. Then you will see the API key on https://developer.citrixonline.com/sdm/myprofile. If you are not registered, first register yourself on here https://developer.citrixonline.com/user/register. Then Apply for Developer Key. Be sure to check GoToWebinar as Product API. Then you will see the API key on https://developer.citrixonline.com/sdm/myprofile. Installing and Initializing ----- To install the PHP Library, extract the downloaded files and copy the citrix.php from the directory to a directory on the server where you will host your app. Then, just include citrix.php wherever you want to use the PHP Library. You will need an app id to initialize the Library, which you can obtain from your developer profile https://developer.citrixonline.com/sdm/myprofile. First include the citrix.php in you code. You use the Library by instantiating a new Facebook object with, at a minimum, your app id and app secret: include "citrix.php"; $citrix = new Citrix('API Key'); $organizer_key = $citrix->get_organizer_key(); Usage ----- To get current Organizer Key $organizer_key = $citrix->get_organizer_key(); If Organizer Key is empty, create login url. If not parameter is passed then redirect url will be the current url. If you want to redirect to another url, pass the url on the function. But remember the redirect url must be on the same domain that you created the app for. if(!$organizer_key) { $url = $citrix->auth_citrixonline(); echo "<script type='text/javascript'>top.location.href = '$url';</script>"; exit; } To Get access token $url = $citrix->get_access_token(); I will suggest to save the user's access token and organizer key in Database. So that user does not have to authorize your app every time they user you app/website. To load access token and organizer key $citrix->set_organizer_key('organizer_key'); $citrix->set_access_token('access_token'); Get list of webinars $webinars = $citrix->citrixonline_get_list_of_webinars() ; If you want to get previous webinars along with future webinars pass 1 as parmeter ex citrixonline_get_list_of_webinars(1). To create registrant of a webinar - you have to provide webinar id, first name, last name and email. try { $response = $citrix->citrixonline_create_registrant_of_webinar('webinar id', $data = array('first_name' => 'First Name', 'last_name' => 'Lastnmae', 'email'=>'email@email.com')) ; $citrix->pr($response); }catch (Exception $e) { $citrix->pr($e->getMessage()); } To get registrants of a webinar try { $webinars = $citrix->get_registrants_of_webinars('webinar id') ; $citrix->pr($webinars); }catch (Exception $e) { $citrix->pr($e->getMessage()); } To delete registrant of a webinar try { $citrix->citrixonline_delete_registrant_of_webinar('webinar id', 'registrant id') ; }catch (Exception $e) { $citrix->pr($e->getMessage()); } $citrix->pr() is Print_r convenience function. I have created two example files - login.php and api example.php. login.php shows you how to the lib to authorize user with your app. example.php show all api calls. ### Creators [Zakir Hyder](https://github.com/zakir-hyder) ## License Citrix's GoToWebinar PHP Library is available under the MIT license. See the LICENSE file for more info.

  Classes of Zakir Hyder  >  Citrix GoToWebinar PHP Library  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Citrix GoToWebinar PHP Library
Base name: citrix-goto-webinar
Description: Manage Webinars using GotoWebinar Citrix API
Version: 1.0.12
PHP version: 3.0
License: Free To Use But Restricted
All time users: 351 users
All time rank: 6961
Week users: 0 users
Week rank: 153 Equal
 
  Groups   Rate classes User ratings   Applications   Related pages   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes


  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.


  Related pages  
Blog url for this class.

  Files folder image Files  
File Role Description
Plain text file citrix.php Class Class source
Accessible without login Plain text file composer.json Data composer.json updated
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file LICENSE Lic. Auxiliary data
Accessible without login Plain text file login.php Example Example script
Accessible without login Plain text file README.md Data Auxiliary data

Install with Composer Install with Composer - Download Download all files: citrix-goto-webinar.tar.gz citrix-goto-webinar.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  Files folder image Files  
File Role Description
Plain text file citrix.php Class Class source
Accessible without login Plain text file composer.json Data composer.json updated
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file LICENSE Lic. Auxiliary data
Accessible without login Plain text file login.php Example Example script
Accessible without login Plain text file README.md Data Auxiliary data

Install with Composer Install with Composer - Download Download all files: citrix-goto-webinar.tar.gz citrix-goto-webinar.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.