Skip to content

非官方SDK,仅简单封装api,方便脚本使用,减少脚本重复代码

License

Notifications You must be signed in to change notification settings

anysoft/serverchan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 serverchan (for ftqq)

简单封装ftqq提供的api,仓库地址 serverchan

非官方版本,具体可以查看仓库源码

参考具体用法官方API

目的在于方便脚本调用,减少重复代码

Check out the example!

Installation

pip install serverchan

demo

from serverchan import ServerChan
from serverchan.channel import Channels

# secret = 'SCU114xxxxx'
secret = 'SCTxxxx'
serverchan = ServerChan(secret)
response = serverchan.push(title="test", desp='just for test')
print(response.text)
print(response.text.encode().decode('unicode_escape'))

response = serverchan.push(title="test1", desp='just for test1', channel='{}|{}'.format(Channels.WECHAT_SERVICE_ACCOUNT, Channels.PUSHDEER))
print(response.text)
print(response.text.encode().decode('unicode_escape'))

To Do

  • Tests via $ setup.py test (if it's concise).

Pull requests are encouraged!

More Resources

License

agpl-3.0

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

About

非官方SDK,仅简单封装api,方便脚本使用,减少脚本重复代码

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 20

Languages