通知
本站点除 Legacy 产品与方案外,已迁移至 声网新文档中心 ,当前页面不再维护
Documentation
Flexible Classroom
Console 官网 Community Technical support

How to connect Flexible Classroom with your own user management system and class scheduling system?

Type: Integration issues    Platform: All Platforms   Last Updated: 2021/07/09 02:43:57

Flexible Classroom enables real-time engagement in classrooms but does not provide user management system and class scheduling system. If you already have a user management system and class scheduling system, refer to the following picture to connect Flexible Classroom with your own systems.

You need to implement the following business logic:

  • Deploy an RTM Token generator on your server, and generate an RTM Token with parameters including the Agora App ID, App Certificate, and user ID. For details, see Generate an RTM Token.
  • Design a RESTful API for the following three purposes:
    • Check whether the user logging into the app exists in your user management system.
    • Get the user's personal information and class schedule.
    • Get the RTM token generated by the RTM Token Generator.

After the client gets the user ID, class ID, and RTM token, refer to the quickstart guide to call the launch method in the Agora Classroom SDK and pass in the user ID, class ID, and RTM token to the SDK to join a flexible classroom.

  • Please ensure that the user ID and class ID are globally unique.
  • When the first user joins the classroom, Agora automatically creates a classroom. The classroom is destroyed one hour after the last user leaves the classroom. Agora does not store any of your business data.