Skip to main content

扩展你的QQ/微信机器人用途,提供跨框架平台的PHP/Java/Python/NodeJS等编程语言SDK。https://github.com/ksust/HTTP--API

Project description

HTTP-API-SDK


包含PHP/Java/Python/NodeJS四种编程语言SDK。

Github:https://github.com/ksust/HTTP–API

安装:pip install http-api-sdk

引入

from httpapi.HTPSDK import *

sdk = HTTPSDK.httpGet(request.body)

发布命令

python setup.py sdist bdist_wheel --universal

twine upload dist/*

Demo:

#!/usr/bin/env python
# -*-coding:utf-8-*-
"""
Demo Push
HTTP-API Python SDK(Python2、python3)
 * Created by PyCharm.
 * User: yugao
 * version 2.2.2
 * Note: HTTPSDK for Python(适用于版本2.2.2插件):用于解析插件消息、构造返回数据,以及HTTP推送(发起HTTP请求)
 * Contact: 开发者邮箱 admin@ksust.com
"""

from httpapi.HTTPSDK import *

if sys.version_info.major == 2:
        reload(sys)  # python2请配置相应编码
        sys.setdefaultencoding('utf8')
        sys.setdefaultencoding('gb18030')

push = HTTPSDK.httpPush("http://127.0.0.1:8080")
print(push.getGroupList())
print(push.sendPrivdteMsg('QQ', '你好'))

forward = HTTPSDK.msgForwardPush('QQ', '授权码')
print(forward.getGroupList())
print(forward.getLoginQQ())
print(forward.sendPrivdteMsg('QQ', '你好'))
print(forward.getQQRobotInfo())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for http-api-sdk, version 2.3.0
Filename, size File type Python version Upload date Hashes
Filename, size http_api_sdk-2.3.0-py2.py3-none-any.whl (11.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size http-api-sdk-2.3.0.tar.gz (9.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page