ecshop3

ecshop3


第三方telegram登录IM

<p><strong>简要描述:</strong> </p> <ul> <li>登录获取access_token接口</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://imo.zipomall.com:8092/user/loginByTelegram</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST || GET</li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">telegramId</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>telegram id</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "code": 0, "msg": "Successful login", "data": { "birthday": 0, "messageKey": "0htTgRreKcXnnbyjcXoNAw==", "settings": { "allowAtt": 1, "allowGreet": 1, "authSwitch": 0, "chatRecordTimeOut": "-1.0", "chatSyncTimeLen": -2, "closeTelephoneFind": 1, "friendFromList": "1,2,3,4,5", "friendsVerify": 0, "isEncrypt": 0, "isKeepalive": 1, "isTyping": 1, "isUseGoogleMap": 1, "isVibration": 1, "multipleDevices": 3, "nameSearch": 1, "openService": 0, "phoneSearch": 1, "showLastLoginTime": 1, "showTelephone": 1 }, "friendCount": 0, "offlineNoPushMsg": 0, "loginKey": "SZ/ohvAhxkzv8bVsTILkDg==", "httpKey": "2bVFlfISRlkPIgLsLSSwMw==", "sex": 0, "loginToken": "71930088eb2342cfbc7257a67a270af4", "multipleDevices": 3, "login": { "isFirstLogin": 0, "latitude": 0, "loginTime": 1620358618, "longitude": 0, "offlineTime": 0 }, "userId": 10000032, "myInviteCode": "", "access_token": "f7e5c27c9b404777a7e5170d0931936e", "nickname": "wangtao", "payKey": "rR/8ruX8xhKlvxq2qKiN9w==", "isupdate": 1, "payPassword": 0 } }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">code</th> <th style="text-align: left;">说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">10001</td> <td style="text-align: left;">未登录</td> </tr> </tbody> </table> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">int</td> <td>0:成功,非0:失败</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">int</td> <td>错误信息</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">数组</td> <td>返回数据</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML