Download the PHP package bloodlog/webinar-client without Composer
On this page you can find all versions of the php package bloodlog/webinar-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bloodlog/webinar-client
More information about bloodlog/webinar-client
Files in bloodlog/webinar-client
Package webinar-client
Short Description PHP client for webinar.ru
License MIT
Homepage https://github.com/Bloodlog/webinar-client
Informations about the package webinar-client
PHP client for webinar.ru API
Laravel integration client
Подключение:
- Опубликовать конфиг:
Или если автоматическая регистрация не работает, можно зарегистрировать провайдер с настройкой клиента в config/app.php:
- Получить API Token для доступа к webinar.ru и добавить в конфиг:
- config/webinar.php
Получить ключ можно здесь:
- https://events.webinar.ru/business/api - ключ
- https://help.webinar.ru/ru/articles/3147750-интеграция-api-с-чего-начать - документация
Для регистрации пользователя на вебинар:
1 Запросить вебинары:
Или метод помощник, который удобнее
2 Запросить eventSessionID ключ и получить additionalFields(поля для регистрации): (Если дополнительных полей(additionalFields) нет, то можно пропустить)
3 Отправить запрос на регистрацию (Опять используем $eventSessionId из 1 шага):
Или метод помощник, который удобнее
Мне не удобно было использовать длинные и не удобные ключи для отправки доп полей(additionalFields), поэтому я избавился от них с помощью конфига и метода трансформера:
1 нужно зарегистрировать ключи доп полей в конфиге: Используем сопоставление ключей, слева ключ с вебинара, справа ваш ключ:
- config/webinar.php
2 Далее просто используем свои имена полей:
За доп. информацией обращаться к офф. документации