# go-cqhttpSDK
Project description
go-cqhttpSDK
——依赖于go-cqhttp,需要先正确安装并运行,使用HTTP协议,使你更方便的请求go-cqhttpAPI
使用方法:
- 到go-cqhttpSDK下载go_cqhttpsdk.py并引入
- 实例化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.0.tar.gz
(9.8 kB
view details)
Built Distribution
File details
Details for the file cqhttpsdk-1.0.0.tar.gz
.
File metadata
- Download URL: cqhttpsdk-1.0.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09789d0083ab7e58e96389a163bc55cb3eb8afbb390fbef83279765182964ccb |
|
MD5 | 00c73a682fa2613e6b821a4dd448b247 |
|
BLAKE2b-256 | 5f16030ef90ac8f0ffe67c0b700227d12cd0483504f1c73f7cd54a56a3cc6762 |
File details
Details for the file cqhttpsdk-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: cqhttpsdk-1.0.0-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 | 9bb0a28c1394f633c36c57bd326f1c01f106ccd8e359ae0225a00c92eeb8da9c |
|
MD5 | 8b419b5a77f6b5c344107756c5009aa7 |
|
BLAKE2b-256 | e1d54ee5011dd8ca5345a3c646c7170f5b4c3e4f166723857f19e2ae58d9f118 |