Sarufi
This is a Dart SDK that helps users interact with sarufi.io in their Dart projects.
Use Case
Getting started
Steps to install Sarufi to your Project
- In your Project’s pubspec.yaml file of your project add the
dependencies:
sarufi:
- After run, to install the package in your project
$ flutter pub get
You can skip Step 1 and Step 2 and simplly run
$ flutter pub add sarufi
This will add sarufi in the pubspec yaml with the caret sarufi:^0.0.1 of the latest version.
Usage
Below is how you can easily create and view properties of your Chat Bots in dart.
// main.dart
import 'package:sarufi/sarufi.dart';
void main() async {
String userName = "Your Sarufi Username";
String passWord = "Your Sarufi Password";
final bot = Sarufi(username:userName, password:passWord);
var chatbot = await bot.createBot(name:"My First Bot");
print(chatbot);
// Bot(id:11, name:My First Chatbot)
}
Credits and Inspiration
Muchas bendiciones a 😎
For issues about the project write to us at Github