<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 功能強大 支持多語言、二開方便! 廣告
                [TOC] ## mattermost-server [github](https://github.com/mattermost/mattermost-server) mattermost 文檔:[http://docs.mattermost.com](http://docs.mattermost.com) 開發人員文檔:[https://developers.mattermost.com/integrate/](https://developers.mattermost.com/integrate/) ## 架構概述 本質上,Mattermost是一個單編譯的Go二進制文件,它作為帶有Javascript和Go客戶端的Restful JSON Web服務器公開。請在[此處](https://api.mattermost.com/)查看Restful API文檔。 它使用[config / config.json配置,](https://docs.mattermost.com/administration/config-settings.html)并提供以下內容: * **身份驗證客戶端**,為用戶提供通過Team Edition中的電子郵件地址和密碼登錄Mattermost的功能。Enterprise E10增加了用戶使用Active Directory或LDAP進行身份驗證的能力,Enterprise E20增加了使用SAML SSO提供程序(如ADFS,OneLogin和Okta)進行身份驗證的能力。 * **身份驗證提供程序**,它使Mattermost服務器可以使用OAuth 2.0向其他服務(如GitLab和Zapier)進行身份驗證。 * **通知服務**,該**服務**通過SMTP或推送通知服務為移動應用程序發送通知。 * **數據管理服務**,它連接到受支持的數據庫和文件存儲解決方案(本地,通過網絡連接的存儲,Amazon S3等),并管理與它們之間的數據讀取和寫入。 二進制文件與數據庫(通常是MySQL或PostgreSQL)和文件存儲進行通信。 ## 通訊協議 通信協議(HTTPS和WS)定義了用戶與Mattermost服務器建立的連接類型。 **HTTPS連接**(安全超文本傳輸??協議) 與Mattermost Server的HTTPS連接呈現頁面并提供對核心平臺功能的訪問,但不包括實時交互(由WSS連接啟用)。 HTTPS是安全的加密協議,強烈建議用于生產。未加密的HTTP連接可以在初始測試和配置中使用,但絕對不能在生產環境中使用。 **WSS連接**(安全WebSocket協議) 與Mattermost服務器的安全WebSocket(WSS)連接可在客戶端和服務器之間進行實時更新和通知。 如果WSS連接不可用,而使用HTTPS代替,則系統似乎可以正常工作,但實時更新和通知不起作用。在這種操作模式下,更新將僅在頁面刷新上顯示。當連接客戶端時,WSS與Mattermost服務器建立持久連接,而HTTPS具有間歇連接,僅在請求頁面或文件時才連接到服務器。 ## 開發者模式 ### Incoming webhooks Mattermost支持webhooks,可輕松將外部應用程序集成到服務器中。 后臺開啟webhooks ![UTOOLS1593496469288.png](http://yanxuan.nosdn.127.net/36268df3f920165aced96334f62ea1a0.png) 個人集成webhooks: ![UTOOLS1593496510192.png](http://yanxuan.nosdn.127.net/a3bd53783938b18833e2b36960ce6021.png) ` ` 第一步添加webhook.第二步復制webhook連接 ![UTOOLS1593496598686.png](http://yanxuan.nosdn.127.net/d8f7573d77d9f2aaedd817310046e505.png) 使用curl請求webhook連接 ``` curl -i -X POST -H 'Content-Type: application/json' -d '{"text": "Hello, this is some text\nThis is more text. :tada:"}' http://192.168.84.250:8065/hooks/hbifon38rifsxpi6dwnis69umw # or curl -i -X POST --data-urlencode 'payload={"text": "Hello, this is some text\nThis is more text. :tada:"}' http://192.168.84.250:8065/hooks/hbifon38rifsxpi6dwnis69umw ``` 參數還可以傳markdown。詳情請參考:[開發人員文檔](https://developers.mattermost.com/integrate/incoming-webhooks/) ``` POST http://192.168.84.250:8065/hooks/hbifon38rifsxpi6dwnis69umw Accept: */* Cache-Control: no-cache Content-Type: application/json { "channel": "off-topic", "username": "test-automation", "icon_url": "https://www.mattermost.org/wp-content/uploads/2016/04/icon.png", "text": "#### Test results for July 27th, 2017\n@channel please review failed tests.\n\n| Component | Tests Run | Tests Failed |\n|:-----------|:-----------:|:-----------------------------------------------|\n| Server | 948 | :white_check_mark: 0 |\n| Web Client | 123 | :warning: 2 [(see details)](http://linktologs) |\n| iOS Client | 78 | :warning: 3 [(see details)](http://linktologs) |" } ``` ### OutGoing Webhooks
                  <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>

                              哎呀哎呀视频在线观看