Skip to content

Commit

Permalink
add an example for audio
Browse files Browse the repository at this point in the history
  • Loading branch information
glorialimicrosoft committed Aug 29, 2024
1 parent fda55ca commit 3aa0658
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"title": "Sends a notification message - audio",
"operationId": "NotificationMessagesOperations_Send",
"parameters": {
"api-version": "2024-08-30-preview",
"content-type": "application/json",
"body": {
"channelRegistrationId": "0f0eb78e-a576-1dfc-b414-0f0756de3338",
"to": [
"14250000000"
],
"kind": "audio",
"mediaUri": "https://example.com/audio.mp44",
"content": "check out this audio!"
},
"endpoint": "https://my-resource.communication.azure.com"
},
"responses": {
"202": {
"body": {
"receipts": [
{
"messageId": "320fc2a1-4c4b-4387-9c1a-bd38b57795de",
"to": "14250000000"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@
"Sends a notification message - Template": {
"$ref": "./examples/NotificationMessages_SendTemplate.json"
},
"Sends a notification message - audio": {
"$ref": "./examples/NotificationMessages_SendAudio.json"
},
"Sends a notification message - document": {
"$ref": "./examples/NotificationMessages_SendDocument.json"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"title": "Sends a notification message - audio",
"operationId": "NotificationMessagesOperations_Send",
"parameters": {
"api-version": "2024-08-30-preview",
"content-type": "application/json",
"body": {
"channelRegistrationId": "0f0eb78e-a576-1dfc-b414-0f0756de3338",
"to": [
"14250000000"
],
"kind": "audio",
"mediaUri": "https://example.com/audio.mp44",
"content": "check out this audio!"
},
"endpoint": "https://my-resource.communication.azure.com"
},
"responses": {
"202": {
"body": {
"receipts": [
{
"messageId": "320fc2a1-4c4b-4387-9c1a-bd38b57795de",
"to": "14250000000"
}
]
}
}
}
}

0 comments on commit 3aa0658

Please sign in to comment.