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
Copy file name to clipboardExpand all lines: articles/stream-analytics/stream-analytics-twitter-sentiment-analysis-trends.md
+4-10Lines changed: 4 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ In this how-to guide, you use a client application that connects to Twitter and
34
34
35
35
* The TwitterClientCore application, which reads the Twitter feed. To get this application, download [TwitterClientCore](https://github.com/Azure/azure-stream-analytics/tree/master/DataGenerators/TwitterClientCore).
36
36
37
-
* Install the [.NET Core CLI](https://docs.microsoft.com/dotnet/core/tools/?tabs=netcore2x).
37
+
* Install the [.NET Core CLI](https://docs.microsoft.com/dotnet/core/tools/?tabs=netcore2x) version 2.1.0.
38
38
39
39
## Create an event hub for streaming input
40
40
@@ -89,12 +89,6 @@ Before a process can send data to an event hub, the event hub needs a policy tha
89
89
> [!NOTE]
90
90
> For security, parts of the connection string in the example have been removed.
91
91
92
-
8. In the text editor, remove the `EntityPath` pair from the connection string (don't forget to remove the semicolon that precedes it). When you're done, the connection string looks like this:
## Configure and start the Twitter client application
99
93
100
94
The client application gets tweet events directly from Twitter. In order to do so, it needs permission to call the Twitter Streaming APIs. To configure that permission, you create an application in Twitter, which generates unique credentials (such as an OAuth token). You can then configure the client application to use these credentials when it makes API calls.
@@ -105,7 +99,7 @@ If you do not already have a Twitter application that you can use for this how-t
105
99
> [!NOTE]
106
100
> The exact process in Twitter for creating an application and getting the keys, secrets, and token might change. If these instructions don't match what you see on the Twitter site, refer to the Twitter developer documentation.
107
101
108
-
1. From a web browser, go to [Twitter For Developers](https://developer.twitter.com/en/apps), and select **Create an app**. You might see a message saying that you need to apply for a Twitter developer account. Feel free to do so, and after your application has been approved, you should see a confirmation email. It could take several days to be approved for a developer account.
102
+
1. From a web browser, go to [Twitter For Developers](https://developer.twitter.com/en/apps), create a developer account, and select **Create an app**. You might see a message saying that you need to apply for a Twitter developer account. Feel free to do so, and after your application has been approved, you should see a confirmation email. It could take several days to be approved for a developer account.
@@ -134,7 +128,7 @@ Before the application runs, it requires certain information from you, like the
134
128
* Set `oauth_consumer_secret` to the Twitter Consumer Secret (API secret key).
135
129
* Set `oauth_token` to the Twitter Access token.
136
130
* Set `oauth_token_secret` to the Twitter Access token secret.
137
-
* Set `EventHubNameConnectionString` to the connection string. Make sure that you use the connection string that you removed the `EntityPath` key-value pair from.
131
+
* Set `EventHubNameConnectionString` to the connection string.
138
132
* Set `EventHubName` to the event hub name (that is the value of the entity path).
139
133
140
134
3. Open the command line and navigate to the directory where your TwitterClientCore app is located. Use the command `dotnet build` to build the project. Then use the command `dotnet run` to run the app. The app sends Tweets to your Event Hub.
@@ -233,4 +227,4 @@ For further assistance, try our [Azure Stream Analytics forum](https://social.ms
233
227
*[Get started using Azure Stream Analytics](stream-analytics-real-time-fraud-detection.md)
0 commit comments