Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17890

How to disable an api call?

$
0
0

Hi all,

 

I've created a data model which uses a function to call the Microsoft Sentiment Analysis api - everything works really well.

 

What I want to do is somehow disable the call where records have already been allocated a sentiment score from a previous call. This is because there's a cost per call - once I have a score, I don't need to recall the api.

 

 

Below is the function called Sentiment:

 

let
Sentiment = (inputtext) =>

let
Source = OData.Feed("https://api.datamarket.azure.com/data.ashx/amla/text-analytics/v1/GetSentiment?text="&inputtext),
ToTable = Record.ToTable(Source)

in
ToTable

in
Sentiment

 

Can anyone advise on the best way to do this?

Best wishes,

Martyn


Viewing all articles
Browse latest Browse all 17890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>