معرفی شرکت ها


disco.oauth2-1.3b0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

An asynchronous discord OAuth2 API wrapper.
ویژگی مقدار
سیستم عامل -
نام فایل disco.oauth2-1.3b0
نام disco.oauth2
نسخه کتابخانه 1.3b0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده martimartins
ایمیل نویسنده martim13artins13@gmail.com
آدرس صفحه اصلی https://github.com/InviteManagerBot/disco.oauth2
آدرس اینترنتی https://pypi.org/project/disco.oauth2/
مجوز MIT
# Discord OAuth2 [![Documentation Status](https://readthedocs.org/projects/discooauth2/badge/?version=latest)](https://discooauth2.readthedocs.io/en/latest/?badge=latest) [![Pypi version](https://img.shields.io/pypi/v/disco.oauth2)](https://pypi.org/project/disco.oauth2/) [![PyPi downloads](https://img.shields.io/pypi/dm/disco.oauth2.svg)](https://pypistats.org/packages/disco.oauth2) [![Code style: Black](https://img.shields.io/badge/code%20style-Black-000000.svg)](https://github.com/psf/black) A modern, easy to use discord OAuth2 API wrapper written in Python. ## Installing > [Python >3.8](https://www.python.org/downloads/release/python-370/) is required. You can run the following command to install the library: ```bash $ pip install disco.oauth2 ``` To install the development version (lastest), do the following: ```bash $ pip install git+https://github.com/InviteManagerBot/disco.oauth2.git ``` ## Getting started ### Quick Example ```py from disco_oauth2 import Client client = Client( client_id=client_id_here, client_secret="client_secret_here", redirect_uri="redirect_uri_here", scopes=["identify", "guilds", "email", "connections"], ) async def main(): # Exchange a code received from the callback from the redirect url. access_token = await client.exchange_code("my_code") # Fetch user's information with access token. user = await client.fetch_user(access_token) # Fetch user's connections. connections = await user.fetch_connections() # Fetch guilds that the user is member of. guilds = await user.fetch_guilds() print(f"{user!r} | {connections!r}") for guild in guilds: print(f"`{user.name}` member of {guild!r}") ``` ## Requirements - aiohttp > = 3.7.4, < 4 Optionally you may install the [`orjson`](https://github.com/ijl/orjson) libraries (highly recommended for sake of speed). ## License `discord_oauth2` was written by martimartins <martim13artins13@gmail.com>, licensed under the [MIT](https://opensource.org/licenses/MIT) license. ## Contributing All contributions are welcome ;)


نیازمندی

مقدار نام
<4,>=3.7.4 aiohttp


نحوه نصب


نصب پکیج whl disco.oauth2-1.3b0:

    pip install disco.oauth2-1.3b0.whl


نصب پکیج tar.gz disco.oauth2-1.3b0:

    pip install disco.oauth2-1.3b0.tar.gz