Skip to content

Latest commit

 

History

History
53 lines (48 loc) · 3.41 KB

user_service.md

File metadata and controls

53 lines (48 loc) · 3.41 KB

User service

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

How to use

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

class UsersMain:
    @staticmethod
    async def run():
        bdk_config = BdkConfigLoader.load_from_file("path/to/config.yaml")
        async with SymphonyBdk(bdk_config) as bdk:
            users_service = bdk.users()
            users = await users_service.list_users_by_ids([123, 456])
            print(users)


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