<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ### 接口1 登錄 **輸入** Path : http://haoshuo.love:2012/login HTTP Method : POST Params :haoshuo haoshuo = { "appid":"test", "username":"2", //用戶id "pass":"123" //密碼 } **輸出** { "uid":1, //用戶id "token":"04fa0cf760226c402c42f73d23869bad" //token } ### 接口2 單聊 **輸入** Path : http://haoshuo.love:2012/p HTTP Method : POST Params :haoshuo haoshuo = { "appid":"test", "fromid":1, //發送者uid "datatype":1, //1單聊,2群里 "toid":1, //接受者uid "content":"my test 66", //消息內容 "token":"25d9dc7d4ca06048567da02527defc48", //token "restart":"all" //保留字段,固定傳all } **輸出** {"type":"ok"} ### 接口3 群聊 **輸入** Path : http://haoshuo.love:2012/gp HTTP Method : POST Params :haoshuo haoshuo = { "appid":"test", "fromid":1, //發送者uid "datatype":2, //1單聊,2群里 "toid":1, //群組 id "content":"my group msg", //消息內容 "token":"1zz", //token "restart":"all" //保留字段,固定傳all } **輸出** {"type":"ok"} ### 接口4 消息監聽 **輸入** Path : http://haoshuo.love:2012/cget/stream?seq=1&cname=xxxxx&token=xxxxx (http chunk) Path : http://haoshuo.love:2012/cget/poll?seq=1&cname=xxxxx&token=xxxxx (長連接) **輸出** { "type":"data", //data: 正常的消息. //noop: 心跳消息. //429: Error message, too many channels/subscribers. //401: Error message, token error. "content":" //消息數據 {\"msgs\": [ { \"content\":\"my test 66\", //消息內容 \"fromid\":\"1\", //發送者uid \"toid\":\"2\", //接受者uid 或者群組id \"datatype\":1, //1單聊,2群聊 \"msgid\":\"1\", //消息id }, { \"content\":\"my test 66\",//消息內容 \"fromid\":\"1\", //發送者uid \"toid\":\"2\", //接受者uid 或者群組id \"datatype\":1, //1單聊,2群聊 \"msgid\":\"2\", //消息id } ], \"endid\":\"301\", //最近消息id即最大消息id \"toid\":2 //接受者uid 或者群組id }" } ### 接口5 新消息拉取 **輸入** Path : http://haoshuo.love:2012/pull HTTP Method : POST Params :haoshuo haoshuo = { "appid":"test", "uid":1, //用戶id "token":"36296ee15676aa5805d428692140bc25" //token } **輸出** { "msgs": [ { "fromid":"1", //發送者uid "datatype":1, //1單聊,2群里 "content":"my test 66", //消息內容 "msgid":"230", //消息id "toid":"1" //接受者uid 或者群組id }, { "fromid":"1", "datatype":1, "content":"my test 66", "msgid":"231", "toid":"1"}, ], "endid":"240", "uid":1 } ### 接口6 消息接收確認(ack) **輸入** Path : http://haoshuo.love:2012/ack HTTP Method : POST Params :haoshuo haoshuo = { "appid":"test", "uid":2, //用戶id "endid":243, //最近消息id即最大消息id "token":"1ddc9e8e3815735f453acc880fbf69a0" } **輸出** {"type":"ok"} ### 接口7 退出登錄接口 **輸入** Path : http://haoshuo.love:2012/logout HTTP Method : POST Params :haoshuo haoshuo = { "appid":"test", "uid":1, //用戶id "token":"39ce62ea55f98c1d33d5bdb00fdb698f" //token } **輸出** { "uid":1, //用戶id "msg":"ok" }
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看