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.

Source Distribution

http-api-sdk-2.3.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

http_api_sdk-2.3.0-py2.py3-none-any.whl (11.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file http-api-sdk-2.3.0.tar.gz.

File metadata

  • Download URL: http-api-sdk-2.3.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.3.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2

File hashes

Hashes for http-api-sdk-2.3.0.tar.gz
Algorithm Hash digest
SHA256 96b0dd2726dc61497d043df4780392520ad01d9f77578b80c3296e59888e30fc
MD5 58c4619d4a0a181db0d40e3c4909af5d
BLAKE2b-256 eadd05def8f21594b7b747e759f85cd31bb8fae30cb8638ad48518bb7320c4bf

See more details on using hashes here.

File details

Details for the file http_api_sdk-2.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: http_api_sdk-2.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.3.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2

File hashes

Hashes for http_api_sdk-2.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bfd750379eeeb71551032084ae8c1c795f3224f3db19dea7c0423838b0014f90
MD5 05d60c7b79c1086ac977f5b2be934b49
BLAKE2b-256 bf4eb7e5eebc4f7fadbc8b76d08c8897ac4572d5a2178f5794651f435d1670e8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page