@sharpapi/sharpapi-node-product-review-sentiment 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharpapi/sharpapi-node-product-review-sentiment",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "SharpAPI.com Node.js SDK for analyzing product review sentiment",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "Dawid Makowski <contact@sharpapi.com>",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@sharpapi/sharpapi-node-core": "
|
|
28
|
+
"@sharpapi/sharpapi-node-core": "^1.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"jest": "^29.7.0"
|
|
@@ -4,6 +4,15 @@ const { SharpApiCoreService, SharpApiJobTypeEnum } = require('@sharpapi/sharpapi
|
|
|
4
4
|
* Service for analyzing product review sentiment using SharpAPI.com
|
|
5
5
|
*/
|
|
6
6
|
class SharpApiProductReviewSentimentService extends SharpApiCoreService {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new SharpApiProductReviewSentimentService instance
|
|
9
|
+
* @param {string} apiKey - Your SharpAPI API key
|
|
10
|
+
* @param {string} [apiBaseUrl='https://sharpapi.com/api/v1'] - API base URL
|
|
11
|
+
*/
|
|
12
|
+
constructor(apiKey, apiBaseUrl = 'https://sharpapi.com/api/v1') {
|
|
13
|
+
super(apiKey, apiBaseUrl, '@sharpapi/sharpapi-node-product-review-sentiment/1.0.1');
|
|
14
|
+
}
|
|
15
|
+
|
|
7
16
|
/**
|
|
8
17
|
* Parses the customer's product review and provides its sentiment (POSITIVE/NEGATIVE/NEUTRAL)
|
|
9
18
|
* with a score between 0-100%. Great for sentiment report processing for any online store.
|