Basic functionalities are derived from WebexPythonSDK, but modified to use asynchronous HTTP calls.
from webexpythonsdk_async import AsyncWebexAPI import asyncio token = "YOUR_TOKEN" persion_email = "YOUR_EMAIL" api = AsyncWebexAPI(access_token=token) async def main(): async for webhook in api.webhooks.list(): print(f"type: {type(webhook)}, {webhook}") resp = await api.messages.create(toPersonEmail=persion_email, text="Hello World") print(f"type: {type(resp)}, {resp}") if __name__ == "__main__": asyncio.run(main())
python -m pip install webexpythonsdk-async
- Support synchronous calls.
- Add more examples.
- Remove Python 2 style code.
- Add type annotations.