POST api/Other/{UnitName}/SentMessageTeams
發送訊息至Teams群組
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| UnitName |
單位名稱(e.g. 北區輔導團、臺北市、040304) |
string |
Required |
Body Parameters
SentContent| Name | Description | Type | Additional information |
|---|---|---|---|
| UserName |
發送者名稱 |
string |
None. |
| messagebody |
訊息內容 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserName": "sample string 1",
"messagebody": "sample string 2"
}
application/xml, text/xml
Sample:
<SentContent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers"> <UserName>sample string 1</UserName> <messagebody>sample string 2</messagebody> </SentContent>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ServiceAnnouncement| Name | Description | Type | Additional information |
|---|---|---|---|
| service | string |
None. |
|
| status | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"service": "sample string 1",
"status": "sample string 2"
},
{
"service": "sample string 1",
"status": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfMDMAuthorisation.ServiceAnnouncement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MDMAccount">
<MDMAuthorisation.ServiceAnnouncement>
<service>sample string 1</service>
<status>sample string 2</status>
</MDMAuthorisation.ServiceAnnouncement>
<MDMAuthorisation.ServiceAnnouncement>
<service>sample string 1</service>
<status>sample string 2</status>
</MDMAuthorisation.ServiceAnnouncement>
</ArrayOfMDMAuthorisation.ServiceAnnouncement>