Chat Thread - Get Chat Image
Hämta en bild efter vytyp.
GET {endpoint}/chat/threads/{chatThreadId}/images/{imageId}/view/{imageViewType}?api-version=2024-03-15-preview
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
chat
|
path | True |
string |
Tråd-ID:t som meddelandet skickades till. |
endpoint
|
path | True |
string |
Slutpunkten för Azure Communication-resursen. |
image
|
path | True |
string |
Avbildnings-ID: t. |
image
|
path | True |
Bildvytyp. |
|
api-version
|
query | True |
string |
Version av API som ska anropas. |
Begärandehuvud
Name | Obligatorisk | Typ | Description |
---|---|---|---|
Authorization | True |
string |
En åtkomsttoken för ACS-användare (Azure Communication Services). |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
string |
Avbilda binära data Media Types: "application/json", "image/gif", "image/jpeg", "image/png", "image/bmp", "image/tiff" |
Other Status Codes |
Felsvar som beskriver varför åtgärden misslyckades. Media Types: "application/json", "image/gif", "image/jpeg", "image/png", "image/bmp", "image/tiff" |
Säkerhet
Authorization
En åtkomsttoken för ACS-användare (Azure Communication Services).
Typ:
apiKey
I:
header
Exempel
Delete message
Exempelbegäran
GET https://contoso.westus.communications.azure.com/chat/threads/19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2/images/0-eus-d2-fb42e272282ebb6ef76a3aedd1974433/view/original?api-version=2024-03-15-preview
Exempelsvar
Content-Type: image/png
"{binary}"
Definitioner
Name | Description |
---|---|
Error |
Felsvarsinformation. |
Error |
Information om felinformation. |
Error |
Omslutning för felsvar som följer ARM-riktlinjerna. |
Image |
Bildvytyp. |
Error
Felsvarsinformation.
Name | Typ | Description |
---|---|---|
code |
string |
Felkod. |
details |
En matris med felinformationsobjekt. |
|
message |
string |
Felmeddelande. |
ErrorDetail
Information om felinformation.
Name | Typ | Description |
---|---|---|
code |
string |
Felkod. |
message |
string |
Felmeddelande. |
ErrorResponse
Omslutning för felsvar som följer ARM-riktlinjerna.
Name | Typ | Description |
---|---|---|
error |
Felsvaret. |
ImageViewType
Bildvytyp.
Name | Typ | Description |
---|---|---|
original |
string |
|
small |
string |