本帖最后由 Levi.Zhang 于 2024-9-19 09:54 编辑
大佬,创建群需要两个HTTP请求:
1.首先拿到access_token:
示例GET:[color=rgba(0, 0, 0, 0.85)]https://oapi.dingtalk.com/gettoken
{
"errcode": 0,
"access_token": "96fc7a7axxx",
"errmsg": "ok",
"expires_in": 7200
}
2.拿到access_token之后,您的问题是这块地址该怎么写对吧,是需要拼接URL的哦,把拿到的access_token拼接在url后面,其余的参数写在body里面:
示例: https://oapi.dingtalk.com/chat/create?access_token=ACCESS_TOKEN
{
"errcode": 0,
"errmsg": "ok",
"chatid": "chatcf0675d404188xxxx",
"openConversationId": "cidL+NXxxxx+MSA==",
"conversationTag": 2
}
大佬可以再尝试下呢~~~
|