Package used to Call All FishPi API.
Project description
摸鱼派 API Package
摸鱼派社区 (https://fishpi.cn/) 的 API Package,可以快速开发出一款应用支援社区功能。
支援
- 用户信息;
- 聊天室;
- 文件上传;
- 通知信息;
安装
pip install fishpi
用例
from fishpi import FishPi
# 登录获取 apiKey
apiKey = ''
fish = FishPi()
rsp = fish.login(
username='username',
passwd='password123456'
)
if rsp['code'] == 0:
apiKey = rsp.Key
# 通过 apiKey 获取登录用户信息
fish = FishPi(apiKey)
fish.account.info()
# 获取用户自定义表情包
emojis = fish.emoji.get()
# 获取默认表情包
defaultEmoji = fish.emoji.default
# 监听聊天室消息
fish.chatroom.addListener(lambda msg: print(msg))
# 向聊天室发送信息(需要登录)
fish.chatroom.send('Hello World!')
# 向聊天室发送红包
fish.chatroom.redpacket.send(
type='random',
money=32,
count=2,
msg='摸鱼者,事竟成!',
recivers=[]
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fishpi-0.1.1.tar.gz
(10.7 kB
view hashes)
Built Distribution
fishpi-0.1.1-py2.py3-none-any.whl
(10.8 kB
view hashes)
Close
Hashes for fishpi-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b23383a228989fec7d6309222ee44929cb1561985683b554f9e6d6053447b4b |
|
MD5 | edf045c1f7d5bbaba1c72c41f779da0b |
|
BLAKE2b-256 | b82cccd3d57355add258cf397943d9a395b928fc57b827d7f61c906228d106b1 |