An open API service indexing awesome lists of open source software.

https://github.com/benature/larkpy

飞书开放平台 Python 接口 | Python SDK for Lark
https://github.com/benature/larkpy

api feishu lark python

Last synced: 6 months ago
JSON representation

飞书开放平台 Python 接口 | Python SDK for Lark

Awesome Lists containing this project

README

          

# lark.py
飞书开放平台 Python 接口 | Python SDK for Lark

## 安装 Install

```shell
pip install larkpy
```

## 快速开始 Quick Start

```python
from larkpy import LarkBot

url_webhook = "https://open.feishu.cn/open-apis/bot/v2/hook/xxxxxxx"
feishu = LarkBot(url_webhook)

# example 1
feishu.send_text(f"test")

# example 2
payload = [
dict(tag="text", text=f"随便说点啥,然后配个链接" + "\n"),
dict(tag="a", text="🔗 link", href="https://www.github.com")
]
feishu.send_with_payload(payload, title="标题")
```