POST api/msg/getsessioninfo

获取会话信息,如新客户的头像和姓名

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

SessionInfoRequest
名称说明数据类型附加信息
CustId

客户id,选填(自己),获取照片和名称 custid必须,cid可不填

integer

None.

Cid

设备id(自己)

string

None.

From

消息发送者(对方的cusid或者clientId,custid优先)

string

None.

ClearType

系统清除类别

SystemClearType

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "CustId": 1,
  "Cid": "sample string 1",
  "From": "sample string 2",
  "ClearType": 0,
  "City": "sample string 3",
  "Token": "sample string 4",
  "Platform": "sample string 5"
}

application/xml, text/xml

示例:
<SessionInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Msg">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 5</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 4</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</City>
  <Cid>sample string 1</Cid>
  <ClearType>None</ClearType>
  <CustId>1</CustId>
  <From>sample string 2</From>
</SessionInfoRequest>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

SessionInfoResult
名称说明数据类型附加信息
CustName

客户名

string

None.

Photo

头像

string

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "CustName": "sample string 1",
  "Photo": "sample string 2",
  "ErrorCode": 0,
  "Msg": "sample string 3"
}

application/xml, text/xml

示例:
<SessionInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Msg">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</Msg>
  <CustName>sample string 1</CustName>
  <Photo>sample string 2</Photo>
</SessionInfoResult>