client/docs/mcs/auth.md

548 B
Raw Permalink Blame History

Auth

im auth service

/mcs.Auth/Register

将用户注册进IM系统系统会自动分配它预链接的WS服务器

Request

{
    device_os: "Pc", // enum<Pc,Android,Ios,Web>, 设备名
    device_token: "", // type<string>, 设备唯一标识
    device_brand: "", // type<string>, 设备厂商
}

Reply

{
    status: 0, // type<int32>, 状态
    secret_key: "", // type<string>, 秘钥
    endpoints: [""], // list<string>, 服务器地址。
}