WebinarGeek
This is a platform for hosting various types of webinars.
Last updated
This is a platform for hosting various types of webinars.
Last updated
To get the token, go to the account settings on WebinarGeek. You can find it in the top right corner of the screen and after you press the word Account, the drop-down menu opens up, where you need to choose the first option:
Then choose API in the menu on the left
After that, the page with the API will open up
If you didn’t get the key, then you need to contact customer support and ask for one.
After you get the token, open Settings -> Project constants and paste it in the variable webinargeek_token:
To get the list, it’s enough to call the function webinargeek_get_webinar_list():
As a result, there will be a list of webinars in this format:
['{"id":1455034,"date":"11-05-2022 18:00","name":"Second webinar"}', '{"id":1455046,"date":"11-05-2022 18:00","name":"My Webinar"}', '{"id":1453081,"date":"04-05-2022 18:00","name":"My first webinar"}']
where
id - is the id of the broadcast (broadcast_id), the value is essential to all other actions with this webinar date - the date and the time of this broadcast name - the webinar name
If you share with the function any symbol (it’s best to paste '1'), then the function will show only those webinars that aren’t finished yet, and if you don’t paste anything then it will also show the finished ones.
For the registration you need the function webinargeek_get_webinar_list(broadcast_id, name, email), where
broadcast_id - the broadcast’s id for which you need to register the client name - the client’s name that will be shown in the chat email - the email address to which the invitation to the webinar with the link will come
Without these parameters you can’t register a client through the bot.
Example: url = webinargeek_add_subscriber(1455046, 'John Smith', 'john_smith@gmail.com’)
As a result, this variable will hold the link to the webinar through which the user won’t need to register. All user data is set in this variable.
Also, after the function execution, there will be two variables added to the client’s card:
webinargeek_broadcast_id - the id of the broadcast the user was registered for webinargeek_email - the email that was specified in the registration
These variables will be useful for checking the user’s attendance of the webinar.
To check attendance, you’ll need this function webinargeek_is_visitor(webinargeek_broadcast_id, webinargeek_email), where
webinargeek_broadcast_id - the id of the broadcast the user was registered for webinargeek_email - the email that was specified in the registration watch_minimum - (optional parameter) the minimum amount of minutes by which the function identifies if the attendance is counted as one or no
watch = webinargeek_is_visitor(webinargeek_broadcast_id, webinargeek_email)
A reply will be pasted in the variable:
If the webinar wasn’t finished yet, then this text comes as a reply: “Webinar not ended yet”;
If the client didn’t watch the webinar, then this comes as a reply: “False”;
If the client watched the webinar and the parameter watch_minimum wasn’t used, then this comes as a reply: “True”; If the parameter watch_minimum was used, then the function will check the amount of time the client watched it and:
If the client watched it for a lesser amount than what was put as the minimum, this comes as a reply: “False”;
If the amount of time the client watched the webinar for is equal or higher than the specified amount, then this comes as a reply: “True”.
To get the broadcast_id of a specified webinar you need the function webinargeek_search_broadcast_id() with these parameters:
webinar_list - here you need to transfer the variable that holds the function webinargeek_get_webinar_list() result webinar_name - the name of the webinar which broadcast_id you need to find webinar_date - the date of the broadcast of the dd.mm.yyyy format. You can also use curret_date webinar_time - the time of the broadcast of the hh:mm format, where hh = hours and mm = minutes
Example: webinar_list = webinargeek_get_webinar_list() broadcast_id = webinargeek_search_broadcast_id(webinar_list, 'Second webinar', current_date-4, '18:00'
Here we’re trying to find the id of the broadcast that was happening 4 days before the current date at 6pm and was called “Second webinar”.
If the webinar that corresponds to the parameters was in the list, then the function returns the id of the found webinar to the broadcast_id variable.
If such a webinar wasn’t found, then this text is pasted instead: "No webinar with these parameters".