apisender-1.0.0b0
توضیحات
Sends messages to various APIs for email or discord
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | apisender-1.0.0b0 |
| نام | apisender |
| نسخه کتابخانه | 1.0.0b0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Sumiza |
| ایمیل نویسنده | sumiza@gmail.com |
| آدرس صفحه اصلی | https://github.com/Sumiza/apisender/ |
| آدرس اینترنتی | https://pypi.org/project/apisender/ |
| مجوز | - |
# API Sender
Sends messages to various APIs for email or discord
``` python
from apisender import Apisender
```
```
Supported APIs:
- Discord
- Mailjet
- SMTP2GO
Todo:
- Mailgun
- Twillo (sms)
- Telnyx (sms)
```
``` python
Examples:
fromname = "fromname"
fromid = "from@test.com"
subject = "test subject"
toid = "to@test.com"
toname = "toname"
bodytext = "test text"
bodyhtml = "<h1>test html</h1>"
subject = "test subject"
print(Apisender(fromname=fromname,
bodytext=bodytext).discord().text)
print(Apisender(fromname=fromname,
fromid=fromid,
toname=toname,
toid=toid,
subject=subject,
bodytext=bodytext,
bodyhtml=bodyhtml).mailjet().text)
print(Apisender(fromid=fromid,
toid=toid,
subject=subject,
bodytext=bodytext).smtp2go().text)
```
```
Notes:
- No except checks are done for failed sending.
- Check is done if password file is missing.
- Requires requests to work.
- Returns requests responses.
- apisender.json is where you keep your passwords
```
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl apisender-1.0.0b0:
pip install apisender-1.0.0b0.whl
نصب پکیج tar.gz apisender-1.0.0b0:
pip install apisender-1.0.0b0.tar.gz