Discord-oauth2-API-0.1.4
توضیحات
Discord oauth2 api basic client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | Discord-oauth2-API-0.1.4 |
| نام | Discord-oauth2-API |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matej Ruzicka |
| ایمیل نویسنده | vlakboss@vlakoznaltech.eu |
| آدرس صفحه اصلی | https://github.com/Vlakboss/Discord-oauth2-API |
| آدرس اینترنتی | https://pypi.org/project/Discord-oauth2-API/ |
| مجوز | - |
# **Discord oauth2 API (client)**
Is a simple API client for Discord oauth2 API.
### Installation
```
pip install Discord-Oauth2-API
```
### Example
```
from discord_oauth2_api import get_user_data
user_json = get_user_data.get_user_data(code = "", client_id = "", client_secret = "", redirect_uri = "")
user_data = user_json["data"]
user_refresh_token = user_json["refresh_token"]
print(data)
print(refresh_token)
```
#### **VARIABLES**:
- ```code``` - The code from the querystring.
- ```client_id``` - Your application's client id.
- ```client_secret``` - Your application's client secret.
- ```redirect_uri``` - The ```redirect_uri``` associated with this authorization, usually from your authorization URL
More information about variables can be found here -> https://discord.com/developers/docs/topics/oauth2
#### **(DISCORD) REQUESTS ERRORS**:
If the request to the (discord) server does not equal ```<response[200]>```, the library returns a different response (returned from the server).
- ```<response[429]>``` To many requests (to discord server).
- ```<response[500]>``` Internal server error.
And more ...
## Info
- Recommended Python ver. >=3.8
- This is the **first package** by Matej Ruzicka.
## Links
- Author's website -> https://vlakoznaltech.eu/
- Procejct's website -> https://github.com/Vlakboss/Discord-oauth2-API
- Documentation -> Work in progress ;)
###### README.md ver. 1.0
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl Discord-oauth2-API-0.1.4:
pip install Discord-oauth2-API-0.1.4.whl
نصب پکیج tar.gz Discord-oauth2-API-0.1.4:
pip install Discord-oauth2-API-0.1.4.tar.gz