Skip to the content.

ipush

使用

1. 安装

pip install ipush

2. 代码示例

from ipush import Dingtalk

notify = Dingtalk('token', "secret")
notify.send('ipush test')
# or 'text', 'markdown'
notify.settype('markdown').send('**ipush** markdown test')
from ipush import Feishu

notify = Feishu('token', "secret")
notify.send('ipush test')
from ipush import Lark

notify = Lark('token', "secret")
notify.send('ipush test')
from ipush import Bark

notify = Bark('token')
notify.send('ipush test', 'title')
notify.seturl('https://self-hosted')
notify.send('ipush test custom url')
from ipush import Chanify

notify = Chanify('token')
notify.send('ipush test')
notify.seturl('https://self-hosted')
notify.send('ipush test custom url')
from ipush import PushDeer

notify = PushDeer('token')
notify.send('ipush test')
notify.seturl('https://self-hosted')
notify.send('ipush test custom url')
# or 'text', 'markdown'
notify.settype('text').send('ipush test')
from ipush import PushPlus

notify = PushPlus('token')
notify.send('ipush test', 'title')
# or 'html', 'markdown', 'txt', 'json'
notify.settemplate('markdown').send('**ipush** markdown test')
from ipush import Showdoc

notify = Showdoc('token')
notify.send('ipush test', 'title')
from ipush import Xizhi

notify = Xizhi('token')
notify.send('ipush test', 'title')
from ipush import Telegram

notify = Telegram('token')
notify.send('ipush test', 'chat_id')
notify.seturl('https://self-hosted')
notify.send('ipush test custom url')
from ipush import Alertzy

notify = Alertzy('token')
notify.send('ipush test', 'title')
from ipush import Notify

notify = Notify('token', "user_id")
notify.send('ipush test', 'title')
from ipush import Juhe

notify = Juhe('token', 'service_id')
notify.send('ipush test', 'title')
# or 'html', 'markdown', 'txt', 'json'
notify.setdoctype('markdown').send('**ipush** markdown test')
from ipush import WeCom

notify = WeCom('token')
notify.send('ipush test', 'title')
# or 'text', 'markdown'
notify.setmsgtype('markdown').send('**ipush** markdown test')