Skip to content

Commit 5aea535

Browse files
author
dksimpson
committed
Edits
1 parent 35f7790 commit 5aea535

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/azure-functions/functions-twitter-email.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.custom: mvc, cc996988-fb4f-47
1414

1515
Azure Functions integrates with Azure Logic Apps in the Logic Apps Designer. This integration lets you use the computing power of Functions in orchestrations with other Azure and third-party services.
1616

17-
This tutorial shows you how to use Functions with Logic Apps and Cognitive Services on Azure to run sentiment analysis from Twitter posts. An HTTP triggered function categorizes tweets as green, yellow, or red based on the sentiment score. An email is sent when poor sentiment is detected.
17+
This tutorial shows you how to use Azure Functions with Logic Apps and Cognitive Services on Azure to run sentiment analysis from Twitter posts. An HTTP triggered function categorizes tweets as green, yellow, or red based on the sentiment score. An email is sent when poor sentiment is detected.
1818

1919
![image first two steps of app in Logic App Designer](media/functions-twitter-email/00-logic-app-overview.png)
2020

@@ -66,7 +66,7 @@ The Cognitive Services APIs are available in Azure as individual resources. Use
6666

6767
## Create the function app
6868

69-
Functions provides a great way to offload processing tasks in a logic apps workflow. This tutorial uses an HTTP triggered function to process tweet sentiment scores from Cognitive Services and return a category value.
69+
Azure Functions provides a great way to offload processing tasks in a logic apps workflow. This tutorial uses an HTTP triggered function to process tweet sentiment scores from Cognitive Services and return a category value.
7070

7171
[!INCLUDE [Create function app Azure portal](../../includes/functions-create-function-app-portal.md)]
7272

@@ -78,11 +78,11 @@ Functions provides a great way to offload processing tasks in a logic apps workf
7878

7979
![Choose the HTTP trigger](./media/functions-twitter-email/06-function-http-trigger.png)
8080

81-
2. From the **New Function** page, select **Create Function**.
81+
3. From the **New Function** page, select **Create Function**.
8282

83-
In your new HTTP trigger function, select **Code + Test** from the left menu, replace the contents of the `run.csx` file with the following code, and then select **Save**:
83+
4. In your new HTTP trigger function, select **Code + Test** from the left menu, replace the contents of the `run.csx` file with the following code, and then select **Save**:
8484

85-
```csharp
85+
```csharp
8686
#r "Newtonsoft.Json"
8787

8888
using System;
@@ -114,11 +114,11 @@ In your new HTTP trigger function, select **Code + Test** from the left menu, re
114114
? (ActionResult)new OkObjectResult(category)
115115
: new BadRequestObjectResult("Please pass a value on the query string or in the request body");
116116
}
117-
```
117+
```
118118

119-
This function code returns a color category based on the sentiment score received in the request.
119+
This function code returns a color category based on the sentiment score received in the request.
120120

121-
4. To test the function, select **Test** from the top menu. In the **Input** tab, enter a value of `0.2` in the **Body**, and then select **Run**. A value of **RED** is returned in the body of the response in the **Output** tab.
121+
5. To test the function, select **Test** from the top menu. In the **Input** tab, enter a value of `0.2` in the **Body**, and then select **Run**. A value of **RED** is returned in the body of the response in the **Output** tab.
122122

123123
![Define the proxy settings](./media/functions-twitter-email/07-function-test.png)
124124

@@ -180,7 +180,7 @@ Now your app is connected to Twitter. Next, you connect to text analytics to det
180180

181181
![New Step, and then Add an action](media/functions-twitter-email/12-connection-settings.png)
182182

183-
4. Next, enter **Tweet Text** in the text box and then click on **New Step**.
183+
4. Next, enter **Tweet text** in the text box and then click on **New Step**.
184184

185185
![Define text to analyze](media/functions-twitter-email/13-analyze-tweet-text.png)
186186

0 commit comments

Comments
 (0)