---
# System prepended metadata

title: Teams 連接器
tags: [分享]

---

# Teams 連接器
## 1.建立群組(須為管理員)
## 2.設定連接器
## 3.取得 Webhook URL 
> 該 url 即為 API url
## 4.訊息格式-HTML
## 5.範例
### 程式碼
:::info
    String teamsAPI = "Webhook URL";
    JSONObject teamsMsg = new JSONObject();
    teamsMsg.put("title", "訊息標題");
    teamsMsg.put("text", "訊息內容<br><a href=\"https://google.com\" title=\"google\">google</a> <br>html格式<br>");
    httpPOST(teamsAPI, teamsMsg);
:::
### 圖示
:::info
![](https://i.imgur.com/hMzIA2Q.png)


![](https://i.imgur.com/7YRJ6ED.png)
:::

### 參考網址
:::info
https://dotblogs.com.tw/lapland/2017/04/13/145208

https://teamsplatform.xizhang.com/teams-platform-overview/teamsplatform-capabilities/connector.html
:::


###### tags `分享`