接口文档开发者博客官网首页

获取私信SessionId

POSThttps://api.wechatapi.net/finder/getMsgSessionId

接口说明

消息回调接口内返回可不用调用此接口。如未返回需调用本接口。

请求参数

参数名位置类型必填说明
wechat-tokenheaderstring必填
appIdbodystring必填

设备ID

toUserNamebodystring必填

对方的username

myUserNamebodystring必填

自己的username

myAccountTypebodyinteger必填

身份类型 1:视频号身份 2:微信号身份

请求示例

Request JSON
{
  "appId": "",
  "toUserName": "",
  "myUserName": "",
  "myAccountType": 0
}

响应示例

Response JSON
{
  "ret": 200,
  "msg": "操作成功",
  "data": {
    "toUsername": "v2_060000231003b20faec8c6e18f10c7d6c903ec3db0776955d3d97c6b329d6aa58693bcdb7ad1@finder",
    "sessionId": "3eab1521919d4531c83a166faa56cf844737c4a295b127f3edcb68ed4375d049@findermsg",
    "rejectMsg": 0,
    "enableAction": 1,
    "msgExtInfo": "CAIQAw=="
  }
}
接入 获取私信SessionId 接口

注册即可获取 appId 与调用凭证,支持在线调试。

免费注册在线调试

本模块其他接口