Chat Thread - Send Typing Notification
사용자를 대신하여 입력 이벤트를 스레드에 게시합니다.
POST {endpoint}/chat/threads/{chatThreadId}/typing?api-version=2024-03-15-preview
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
chat
|
path | True |
string |
스레드의 ID입니다. |
endpoint
|
path | True |
string |
Azure Communication 리소스의 엔드포인트입니다. |
api-version
|
query | True |
string |
호출할 API의 버전입니다. |
요청 헤더
Name | 필수 | 형식 | Description |
---|---|---|---|
Authorization | True |
string |
ACS(Azure Communication Services) 사용자 액세스 토큰입니다. |
요청 본문
Name | 형식 | Description |
---|---|---|
senderDisplayName |
string |
입력 알림 보낸 사람의 표시 이름입니다. 이 속성은 푸시 알림에 대한 보낸 사람 이름을 채우는 데 사용됩니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
요청이 성공했습니다. |
|
401 Unauthorized |
Communication |
권한이 없습니다. |
403 Forbidden |
Communication |
사용할 수 없습니다. |
429 Too Many Requests |
Communication |
요청이 너무 많습니다. |
Other Status Codes |
Communication |
서비스를 사용할 수 없습니다. |
보안
Authorization
ACS(Azure Communication Services) 사용자 액세스 토큰입니다.
Type:
apiKey
In:
header
예제
Post typing event to a thread
Sample Request
POST https://contoso.westus.communications.azure.com/chat/threads/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/typing?api-version=2024-03-15-preview
{
"senderDisplayName": "Jane"
}
Sample Response
{
"error": {
"code": "Unauthorized",
"message": "Request is not authorized."
}
}
{
"error": {
"code": "Forbidden",
"message": "User is not allowed to perform specified action."
}
}
{
"error": {
"code": "TooManyRequests",
"message": "Rate limit exceeded."
}
}
{
"error": {
"code": "ServiceUnavailable",
"message": "The server is currently unable to handle the request."
}
}
정의
SendTypingNotificationRequest
알림 입력에 대한 페이로드를 요청합니다.
Name | 형식 | Description |
---|---|---|
senderDisplayName |
string |
입력 알림 보낸 사람의 표시 이름입니다. 이 속성은 푸시 알림에 대한 보낸 사람 이름을 채우는 데 사용됩니다. |