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:
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())