# go-cqhttpSDK
Project description
go-cqhttpSDK
——依赖于go-cqhttp,需要先正确安装并运行,使用HTTP协议,使你更方便的请求go-cqhttpAPI
使用方法:
- 到go-cqhttpSDK下载go_cqhttpsdk.py并引入或者pip install cqhttpsdk
- 实例化sdk方法
sdk = go_cqhttpsdk.sdk
- 设置API的url地址
sdk.url = 'http://127.0.0.1:5700'
- 开始使用
- 例子:
import go_cqhttpsdk as sdk
sdk = sdk.sdk()
sdk.url = "http://127.0.0.1:5700"
sdk.发送私聊消息(3192145045,'','你好')
sdk.send_private_msg(3192145045,'','hello shizhi')
感谢:requests,go-cqhttp,tencent
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
cqhttpsdk-1.0.1.tar.gz
(9.9 kB
view details)
Built Distribution
File details
Details for the file cqhttpsdk-1.0.1.tar.gz
.
File metadata
- Download URL: cqhttpsdk-1.0.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d0705933a1b69206b97f81cdda37be124b41b2ccf08740f7075faf72424f6be |
|
MD5 | 5f603a8d67e3db3dca83bccf01fa5f90 |
|
BLAKE2b-256 | 0b903e502d9dd77f6dd3e8bf0a52e2fa63de8994a484119f06c196898dfe001b |
File details
Details for the file cqhttpsdk-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: cqhttpsdk-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d321d0e485f9b6a7fd6fc3b5cc9c017af58c27d024ec9250c4700338b08eba60 |
|
MD5 | e9f8b3f766b706d25ab99eba2b6317ec |
|
BLAKE2b-256 | 82d564340306faa662bab5a7ee5a4c6c654e3f0b37905cb674e67462d8178af3 |