fridayapi v5.5.14
FridayAPI
$ npm i fridayapi
FridayAI API
How can I use This AI ?
You have to get API Key by developer . To do that you have to mail your reason to infofridayapp@gmail.com
Lastest Patch 23.07.2018 | v5.5.14 Domain update : api.fridaytec.com
Example
fridayapi.config('apikey',false);
fridayapi.ai('Hi',(ai) => {
console.log(ai)
})
/*
Friday answers:
- Hi how can I help ?
*/
*Or
fridayapi('Hi', 'apikey',ai => {
console.log(ai)
})
/*
Friday answers:
- Hi how can I help ?
*/
Handling errors
While using debug mode every errors will gives error codes.
fridayapi.config('apikey',(**DEBUG MODE**));
*TRUE
*FALSE
Codes | Message |
---|---|
version_fail | You will get this error when your client outdated |
api_fail | You will get this error when your api key wrong |
connection_fail | You will get this error when your client can't connect internet or blocked to connect |
server_fail | You will get this error when server on maintenance. In case you get this error try use it again |
empty_msg | You will get this error when you didn't typed any messages |
empty_key | You will get this error when you didn't typed any apikey |
apikey_length | You will get this error when your apikey shorter than 9 characters |
if(ai === 'api_fail') {
return console.log('Wrong api key')
}
Tests
Test PC | Final Version |
---|---|
PC 1 Node6 | 0.768ms* |
PC 2 Node6 | 0.946ms* |
PC 1 Node9 | 1.057ms* |
PC 2 Node9 | 0.919ms* |
PC 1 : VM under load
PC 2 : VM no tasks in background just started
*There will be difference between other computers/clients or internet connections .
This module on Final version . In future this module will only takes bug/fix updates
If the server can not be accessed. Please contact the project developer at ahmetcanco@gmail.com. If you report the error code given, you will receive 100 free requests.
FridayAI© 2018
Intelligent Things© FridayAPI | FridayVision | FridayBox | FridayIoT | FridayHOME | Friday Module Assistant | FridayAI-pc
License
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago