Skip to content

Commit c3d6567

Browse files
authored
Merge pull request #216736 from aahill/quickstart-buttons
[Cog Svcs] quickstart update
2 parents a969a31 + 5255136 commit c3d6567

File tree

8 files changed

+82
-13
lines changed

8 files changed

+82
-13
lines changed

articles/cognitive-services/language-service/includes/create-resource.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,3 @@ To use the code sample below, you'll need to deploy an Azure resource. This reso
3434
1. Select **Review + Create** at the bottom of the page.
3535

3636
1. In the screen that appears, make sure the validation has passed, and that you entered your information correctly. Then click **Create**.
37-
38-
### Get your key and endpoint
39-
40-
Next you will need the key and endpoint from the resource to connect your application to the API. You'll paste your key and endpoint into the code later in the quickstart.
41-
42-
1. After the Language resource deploys successfully, click the **Go to Resource** button under **Next Steps**.
43-
44-
:::image type="content" source="../media/portal-resource-next-steps.png" alt-text="A screenshot showing the next steps after a resource has deployed." lightbox="../media/portal-resource-next-steps.png":::
45-
46-
1. On the screen for your resource, select **Keys and endpoint** on the left navigation menu. You will use one of your keys and your endpoint in the steps below.
47-
48-
:::image type="content" source="../media/azure-portal-resource-credentials.png" alt-text="A screenshot showing the keys and endpoint section for a resource." lightbox="../media/azure-portal-resource-credentials.png":::
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
services: cognitive-services
3+
author: aahill
4+
manager: nitinme
5+
ms.service: cognitive-services
6+
ms.subservice: language-service
7+
ms.topic: include
8+
ms.date: 11/01/2022
9+
ms.author: aahi
10+
---
11+
12+
### Get your key and endpoint
13+
14+
Next you will need the key and endpoint from the resource to connect your application to the API. You'll paste your key and endpoint into the code later in the quickstart.
15+
16+
1. After the Language resource deploys successfully, click the **Go to Resource** button under **Next Steps**.
17+
18+
:::image type="content" source="../media/portal-resource-next-steps.png" alt-text="A screenshot showing the next steps after a resource has deployed." lightbox="../media/portal-resource-next-steps.png":::
19+
20+
1. On the screen for your resource, select **Keys and endpoint** on the left navigation menu. You will use one of your keys and your endpoint in the steps below.
21+
22+
:::image type="content" source="../media/azure-portal-resource-credentials.png" alt-text="A screenshot showing the keys and endpoint section for a resource." lightbox="../media/azure-portal-resource-credentials.png":::

articles/cognitive-services/language-service/sentiment-opinion-mining/includes/quickstarts/csharp-sdk.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,19 @@ Use this quickstart to create a sentiment analysis application with the client l
2525

2626
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
2727

28+
> [!div class="nextstepaction"]
29+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=CSHARP&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Create-an-azure-resource" target="_target">I ran into an issue</a>
30+
31+
[!INCLUDE [Get your key and endpoint](../../../includes/get-key-endpoint.md)]
32+
33+
> [!div class="nextstepaction"]
34+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=CSHARP&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Get-your-key-and-endpoint" target="_target">I ran into an issue</a>
35+
2836
[!INCLUDE [Create environment variables](../../../includes/environment-variables.md)]
2937

38+
> [!div class="nextstepaction"]
39+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=CSHARP&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Create-environment-variables" target="_target">I ran into an issue</a>
40+
3041
### Create a new .NET Core application
3142

3243
Using the Visual Studio IDE, create a new .NET Core console app. This will create a "Hello World" project with a single C# source file: *program.cs*.

articles/cognitive-services/language-service/sentiment-opinion-mining/includes/quickstarts/java-sdk.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,19 @@ Use this quickstart to create a sentiment analysis application with the client l
2626

2727
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
2828

29+
> [!div class="nextstepaction"]
30+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=JAVA&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Create-an-azure-resource" target="_target">I ran into an issue</a>
31+
32+
[!INCLUDE [Get your key and endpoint](../../../includes/get-key-endpoint.md)]
33+
34+
> [!div class="nextstepaction"]
35+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=JAVA&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Get-your-key-and-endpoint" target="_target">I ran into an issue</a>
36+
2937
[!INCLUDE [Create environment variables](../../../includes/environment-variables.md)]
3038

39+
> [!div class="nextstepaction"]
40+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=JAVA&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Create-environment-variables" target="_target">I ran into an issue</a>
41+
3142
### Add the client library
3243

3344
Create a Maven project in your preferred IDE or development environment. Then add the following dependency to your project's *pom.xml* file. You can find the implementation syntax [for other build tools](https://mvnrepository.com/artifact/com.azure/azure-ai-textanalytics/5.2.0) online.

articles/cognitive-services/language-service/sentiment-opinion-mining/includes/quickstarts/nodejs-sdk.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,19 @@ Use this quickstart to create a sentiment analysis application with the client l
2525

2626
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
2727

28+
> [!div class="nextstepaction"]
29+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=JAVASCRIPT&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Create-an-azure-resource" target="_target">I ran into an issue</a>
30+
31+
[!INCLUDE [Get your key and endpoint](../../../includes/get-key-endpoint.md)]
32+
33+
> [!div class="nextstepaction"]
34+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=JAVASCRIPT&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Get-your-key-and-endpoint" target="_target">I ran into an issue</a>
35+
2836
[!INCLUDE [Create environment variables](../../../includes/environment-variables.md)]
2937

38+
> [!div class="nextstepaction"]
39+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=JAVASCRIPT&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Create-environment-variables" target="_target">I ran into an issue</a>
40+
3041
### Create a new Node.js application
3142

3243
In a console window (such as cmd, PowerShell, or Bash), create a new directory for your app, and navigate to it.

articles/cognitive-services/language-service/sentiment-opinion-mining/includes/quickstarts/python-sdk.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,20 @@ Use this quickstart to create a sentiment analysis application with the client l
2424

2525
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
2626

27+
> [!div class="nextstepaction"]
28+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=PYTHON&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Create-an-azure-resource" target="_target">I ran into an issue</a>
29+
30+
[!INCLUDE [Get your key and endpoint](../../../includes/get-key-endpoint.md)]
31+
32+
> [!div class="nextstepaction"]
33+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=PYTHON&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Get-your-key-and-endpoint" target="_target">I ran into an issue</a>
34+
2735
[!INCLUDE [Create environment variables](../../../includes/environment-variables.md)]
2836

37+
> [!div class="nextstepaction"]
38+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=PYTHON&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Create-environment-variables" target="_target">I ran into an issue</a>
39+
40+
2941
### Install the client library
3042

3143
After installing Python, you can install the client library with:

articles/cognitive-services/language-service/sentiment-opinion-mining/includes/quickstarts/rest-api.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,20 @@ Use this quickstart to send sentiment analysis requests using the REST API. In t
2525

2626
[!INCLUDE [Create an Azure resource](../../../includes/create-resource.md)]
2727

28+
> [!div class="nextstepaction"]
29+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Create-an-azure-resource" target="_target">I ran into an issue</a>
30+
31+
[!INCLUDE [Get your key and endpoint](../../../includes/get-key-endpoint.md)]
32+
33+
> [!div class="nextstepaction"]
34+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Get-your-key-and-endpoint" target="_target">I ran into an issue</a>
35+
2836
[!INCLUDE [Create environment variables](../../../includes/environment-variables.md)]
2937

38+
> [!div class="nextstepaction"]
39+
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=CSHARP&Pillar=Language&Product=Sentiment-analysis&Page=quickstart&Section=Create-environment-variables" target="_target">I ran into an issue</a>
40+
41+
3042
## Create a JSON file with the example request body
3143

3244
In a code editor, create a new file named `request_body.json` and copy the following JSON example. This example request will be sent to the API in the next step.
@@ -223,6 +235,8 @@ curl -X POST $LANGUAGE_ENDPOINT/language/:analyze-text?api-version=2022-05-01 \
223235
224236
[!INCLUDE [clean up resources](../../../includes/clean-up-resources.md)]
225237

238+
[!INCLUDE [clean up environment variables](../../../includes/clean-up-variables.md)]
239+
226240
> [!div class="nextstepaction"]
227241
> <a href="https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST API&Pillar=Language&Product=Entity-linking&Page=quickstart&Section=Clean-up-resources" target="_target">I ran into an issue</a>
228242

articles/cognitive-services/language-service/sentiment-opinion-mining/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: cognitive-services
99
ms.subservice: language-service
1010
ms.topic: quickstart
11-
ms.date: 10/21/2022
11+
ms.date: 11/01/2022
1212
ms.author: aahi
1313
ms.devlang: csharp, java, javascript, python
1414
ms.custom: language-service-sentiment-opinion-mining, ignite-fall-2021, mode-api

0 commit comments

Comments
 (0)