slack-webhook-1.0.7
توضیحات
slack-webhook is a python client library for slack api Incoming Webhooks on Python 3.6 and above.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | slack-webhook-1.0.7 |
| نام | slack-webhook |
| نسخه کتابخانه | 1.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | 10mohi6 |
| ایمیل نویسنده | 10.mohi.6.y@gmail.com |
| آدرس صفحه اصلی | https://github.com/10mohi6/slack-webhook-python |
| آدرس اینترنتی | https://pypi.org/project/slack-webhook/ |
| مجوز | MIT |
# slack-webhook
[](https://pypi.org/project/slack-webhook/)
[](https://opensource.org/licenses/MIT)
[](https://codecov.io/gh/10mohi6/slack-webhook-python)
[](https://travis-ci.com/10mohi6/slack-webhook-python)
[](https://pypi.org/project/slack-webhook/)
[](https://pepy.tech/project/slack-webhook)
slack-webhook is a python client library for slack api Incoming Webhooks on Python 3.6 and above.
## Installation
$ pip install slack-webhook
## Usage
### basic
```python
from slack_webhook import Slack
slack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX')
slack.post(text="Hello, world.")
```
### advanced
```python
from slack_webhook import Slack
slack = Slack(url='https://hooks.slack.com/services/T00/B00/XXX')
slack.post(text="Robert DeSoto added a new task",
attachments = [{
"fallback": "Plan a vacation",
"author_name": "Owner: rdesoto",
"title": "Plan a vacation",
"text": "I've been working too hard, it's time for a break.",
"actions": [
{
"name": "action",
"type": "button",
"text": "Complete this task",
"style": "",
"value": "complete"
},
{
"name": "tags_list",
"type": "select",
"text": "Add a tag...",
"data_source": "static",
"options": [
{
"text": "Launch Blocking",
"value": "launch-blocking"
},
{
"text": "Enhancement",
"value": "enhancement"
},
{
"text": "Bug",
"value": "bug"
}
]
}
]
}]
)
```
## Getting started
For help getting started with Incoming Webhooks, view our online [documentation](https://api.slack.com/incoming-webhooks).
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.0 | Python |
نحوه نصب
نصب پکیج whl slack-webhook-1.0.7:
pip install slack-webhook-1.0.7.whl
نصب پکیج tar.gz slack-webhook-1.0.7:
pip install slack-webhook-1.0.7.tar.gz