Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

rainuxhe/WebexPythonSDK-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

WebexPythonSDK-async

Basic functionalities are derived from WebexPythonSDK, but modified to use asynchronous HTTP calls.

Examples

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

Installation

python -m pip install webexpythonsdk-async

Todo

  • Support synchronous calls.
  • Add more examples.
  • Remove Python 2 style code.
  • Add type annotations.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /