Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 936 Bytes

File metadata and controls

24 lines (19 loc) · 936 Bytes

Session service

The Session Service is a component at the service layer of the BDK which covers the Session part of the REST API documentation. More precisely:

How to use

The central component for the Session Service is the SessionService class, it exposes the service APIs endpoints mentioned above.
The service is accessible from theSymphonyBdk object by calling the sessions() method:

class SessionMain:
    @staticmethod
    async def run():
        bdk_config = BdkConfigLoader.load_from_file("path/to/config.yaml")
        async with SymphonyBdk(bdk_config) as bdk:
            sessions_service = bdk.sessions()
            session_info = await sessions_service.get_session()
            print(session_info)


if __name__ == "__main__":
    asyncio.run(SessionMain.run())