創(chuàng)建群聊
請求參數(shù)
Header 參數(shù)
export interface ApifoxModel {
? ? "X-GEWE-TOKEN": string;
? ? [property: string]: any;
}
Body 參數(shù)application/json
export interface ApifoxModel {
? ? /**
? ? * 設(shè)備ID
? ? */
? ? appId: string;
? ? /**
? ? * 好友的wxid列表
? ? */
? ? wxids: string[];
? ? [property: string]: any;
}
示例
{
? ? "appId": "",
? ? "wxids": [
? ? ? ? "wxid_0xsqb3o0tsvz22",
? ? ? ? "wxid_phyyedw9xap22"
? ? ]
}
示例代碼
curl --location --request POST 'http://api.geweapi.com/gewe/v2/api/group/createChatroom' \
--header 'X-GEWE-TOKEN: ' \
--header 'Content-Type: application/json' \
--data-raw '{
? ? "appId": "",
? ? "wxids": [
? ? ? ? "wxid_0xsqb3o0tsvz22",
? ? ? ? "wxid_phyyedw9xap22"
? ? ]
}'
返回響應(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;
? ? /**
? ? * 群頭像的base64圖片
? ? */
? ? headImgBase64: string;
? ? [property: string]: any;
}
示例
{"ret":200,"msg":"操作成功","data":{"headImgBase64":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCA