smart-chatbot
Advanced tools
Comparing version 0.0.6 to 0.0.7
12
main.js
@@ -19,13 +19,7 @@ const axios = require("axios"); | ||
let getparams = { | ||
message: json.message, | ||
user: json.user, | ||
language: json.language | ||
}; | ||
let params = new URLSearchParams(getparams).toString(); | ||
axios.get(`${baseURL}/chatbot?message=${encodeURIComponent(json.message)}&${encodeURIComponent(json.user)}&${encodeURIComponent(json.language)}`, { | ||
axios.get(`${baseURL}/chatbot?message=${encodeURIComponent(json.message)}&user=${encodeURIComponent(json.user)}&language=${encodeURIComponent(json.language)}`, { | ||
headers: { | ||
'Authorization': `${secret}`, | ||
'Version': `${version}` | ||
'Version': `${version}`, | ||
'using': "npm" | ||
} | ||
@@ -32,0 +26,0 @@ }).then(x => { |
{ | ||
"name": "smart-chatbot", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Intelligent Chat Bot Api", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -16,3 +16,3 @@ <p align="center"><a href="https://nodei.co/npm/smart-chatbot"><img src="https://nodei.co/npm/smart-chatbot.png"></a></p> | ||
language: "tr" // (tr, en) | ||
}).then(answer => console.log); | ||
}).then(answer => console.log(answer)); | ||
``` | ||
@@ -19,0 +19,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16769
71