You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this quickstart, you'll get started using the Translator service to [translate text](reference/v3-0-translate.md) with a programming language of your choice and the REST API.
24
25
25
26
> [!NOTE]
26
27
>
27
-
> * For this quickstart it is recommended that you use a Translator text single-service subscription.
28
-
> * With the single-service subscription you'll include one authorization header (**Ocp-Apim-Subscription-key**) with the REST API request. The value for Ocp-Apim-Subscription-key is your Azure secret key for your Translator Text subscription.
29
-
> * If you choose to use the multi-service Cognitive Services subscription, it requires two authentication headers (**Ocp-Api-Subscription-Key** and **Ocp-Apim-Subscription-Region**). The value for Ocp-Apim-Subscription-Region is the region associated with your subscription.
30
-
> * For more information on how to use the Ocp-Apim-Subscription-Region header, _see_[Use the Text Translator APIs](translator-text-apis.md).
28
+
> * For this quickstart it is recommended that you use a Translator text single-service global resource.
29
+
> * With a single-service global resource you'll include one authorization header (**Ocp-Apim-Subscription-key**) with the REST API request. The value for Ocp-Apim-Subscription-key is your Azure secret key for your Translator Text subscription.
30
+
> * If you choose to use the multi-service Cognitive Services or regional Translator resource, two authentication headers will be required: (**Ocp-Api-Subscription-Key** and **Ocp-Apim-Subscription-Region**). The value for Ocp-Apim-Subscription-Region is the region associated with your subscription.
31
+
> * For more information on how to use the **Ocp-Apim-Subscription-Region** header, _see_[Text Translator REST API headers](translator-text-apis.md).
31
32
32
33
## Prerequisites
33
34
@@ -52,13 +53,12 @@ To call the Translator service via the [REST API](reference/rest-api-guide.md),
52
53
53
54
For more information on Translator authentication options, _see_ the [Translator v3 reference](./reference/v3-0-reference.md#authentication) guide.
54
55
55
-
|Header|Value| Condition |
56
+
Header|Value| Condition |
56
57
|--- |:--- |:---|
57
-
|**Ocp-Apim-Subscription-Key**|Your Translator service key from the Azure portal.|<ul><li>***Required***</li></ul> |
58
-
|**Content-Type**|The content type of the payload. The accepted value is **application/json** or **charset=UTF-8**.|<ul><li>***Required***</li></ul>|
59
-
|**Content-Length**|The **length of the request** body.|<ul><li>***Optional***</li></ul> |
60
-
|**X-ClientTraceId**|A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named ClientTraceId.|<ul><li>***Optional***</li></ul>
61
-
|||
58
+
|**Ocp-Apim-Subscription-Key**|Your Translator service key from the Azure portal.|•***Required***|
59
+
|**Ocp-Apim-Subscription-Region**|The region where your resource was created. |•***Required*** when using a multi-service Cognitive Services or regional (non-global) resource.</br>•***Optional*** when using a single-service global Translator Resource.
60
+
|**Content-Type**|The content type of the payload. The accepted value is **application/json** or **charset=UTF-8**.|•**Required**|
61
+
|**Content-Length**|The **length of the request** body.|•***Optional***|
0 commit comments