Now it is effortless to create a chatbot like Apple Siri, Amazon Echo & Google Home like answers for cricket queries. It will enhance your app to the next level, and it creates a user engagement.
The Chatbot API gives the answers from topics such as player profile, recent matches, player vs. team, team vs. team and live updates. The Chatbot API provides ChatBot User Registration API and the ChatBot API.
The User Registration API gives the username to get the answers from chatbot API.
To get registered, use the following command.
$ curl -x POST \
-d "full_name=YOUR_NAME" \
-d "email=YOUR_EMAIL" \
-d "phone_number=PHONE_NUMBER" \
-d "utc_offset=+UTC_OFFSET OF YOUR ZONE" \
-d "gender=female" \
-d "access_token=ACCESS_TOKEN" \
https://rest.cricketapi.com/rest/v3/bot/register-user/
utc_offset: A UTC offset is the difference in time between UTC time and a location's observed time.
E.g.: "utc_offset=+19800"
The Chatbot API gives answers from topics such as player profile, recent matches, player vs team, team vs team and live updates.
To get the user name, refer {data.[user]}
in the User Registration API & to get the answers, pass the following command.
$ curl -X POST \
-d "text=Best score of Virat vs Australia" \
-d "user=USER_NAME" \
-d "utc_offset=+19800" \
-d "access_token=ACCESS_TOKEN" \
https://rest.cricketapi.com/rest/v3/bot/