Skip to Content
Serverless computing in Azure with .NET
book

Serverless computing in Azure with .NET

by Sasha Rosenbaum
August 2017
Intermediate to advanced
468 pages
12h 5m
English
Packt Publishing
Content preview from Serverless computing in Azure with .NET

The text sentiment analytics API call implementation

To implement the call to the Text Sentiment Analytics API from the Function App, we will leverage the shared code to avoid code duplication. We will modify the EvaluateText class we have implemented in the previous chapter to call the API and return a meaningful sentiment score rather than using a random double score value.

To implement the procedure, let's first add the following two settings to the local.settings.json file so that we can access them across all the functions in the Function App:

    "textSentimentApiUrl": "https://westus.api.cognitive.microsoft.com/    text/analytics/v2.0/sentiment",    "textSentimentApiKey": "<You API key>"
When publishing the application, remember to add the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni
Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781787288393Supplemental Content