在我們的生活和工作當中,很多時候我們并不能及時地回復消息,尤其是業(yè)務(wù)比較多的人,客戶給我們發(fā)消息我們不回又不好,但又沒有那么多精力時時回復,這個時候智能機器人就能幫助我們解決很多問題。今天要介紹的是一個基于 gewe框架的 Python 項目模板,它簡化了創(chuàng)建和開發(fā)自定義微信聊天機器人的流程,讓開發(fā)者能夠快速入門并實現(xiàn)自己的功能。

請求參數(shù)
Header 參數(shù)
export interface ApifoxModel {
? ? "X-GEWE-TOKEN": string;
? ? [property: string]: any;
}
Body 參數(shù)application/json
export interface ApifoxModel {
? ? /**
? ? * 設(shè)備ID
? ? */
? ? appId: string;
? ? /**
? ? * 二維碼的鏈接
? ? */
? ? qrUrl: string;
? ? [property: string]: any;
}
示例
{
? ? "appId": "",
? ? "qrUrl": "https://weixin.qq.com/g/AwYAALLELoeKLg-qWAtkYtBdyTg_i2TG22w1GS-cL1GFO9J4AemIyZAw7RSuIpZw"
}
示例代碼
curl --location --request POST 'http://api.geweapi.com/gewe/v2/api/group/joinRoomUsingQRCode' \
--header 'X-GEWE-TOKEN: ' \
--header 'Content-Type: application/json' \
--data-raw '{
? ? "appId": "",
? ? "qrUrl": "https://weixin.qq.com/g/AwYAALLELoeKLg-qWAtkYtBdyTg_i2TG22w1GS-cL1GFO9J4AemIyZAw7RSuIpZw"
}'
返回響應(yīng)
成功(200)
HTTP 狀態(tài)碼: 200 內(nèi)容格式: JSON application/json
數(shù)據(jù)結(jié)構(gòu)
export interface ApifoxModel {
? ? data: Data;
? ? msg: string;
? ? ret: number;
? ? [property: string]: any;
}
export interface Data {
? ? /**
? ? * 群ID
? ? */
? ? chatroomId: string;
? ? /**
? ? * 群名稱
? ? */
? ? chatroomName: string;
? ? html: null;
? ? [property: string]: any;
}
示例
{
? ? "ret": 200,
? ? "msg": "操作成功",
? ? "data": {
? ? ? ? "chatroomName": "GeWe-test-room(2)",
? ? ? ? "html": null,
? ? ? ? "chatroomId": "34559815390@chatroom"
? ? }
}