Sentiment Analysis, 50 credits per call.
using XapiScraper;
using XapiScraper.Models.Components;
var sdk = new XapiScraperSDK(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
SentimentAnalysisQuery req = new SentimentAnalysisQuery() {
Text = "<value>",
};
var res = await sdk.Analysis.SentimentAsync(req);
// handle response
| Parameter |
Type |
Required |
Description |
request |
SentimentAnalysisQuery |
✔️ |
The request object to use for the request. |
AnalysisSentimentResponse
| Error Type |
Status Code |
Content Type |
| XapiScraper.Models.Errors.HTTPValidationError |
422 |
application/json |
| XapiScraper.Models.Errors.APIException |
4XX, 5XX |
*/* |