Skip to content

Commit d3a6167

Browse files
committed
yay!
1 parent bc37c60 commit d3a6167

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/ai-services/translator/how-to/microsoft-entra-id-auth.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,10 @@ curl -X POST "https://{your-custom-domain}.cognitiveservices.azure.com/translato
321321

322322
Replace {your-custom-domain} with the value form the Azure portal and {access-token} with the token obtained from the previous step, [obtain an access token](#obtain-an-access-token-with-oauth-client-credentials-flow).
323323

324+
Here's an example of the JSON response:
325+
326+
```json
327+
[{"detectedLanguage":{"language":"es","score":1.0},"translations":[{"text":"Hello","to":"en"}]}]
328+
```
329+
324330
Congratulations! You now know how to use Microsoft Entra ID to authenticate requests to your Azure API.

0 commit comments

Comments
 (0)