connectycube_sdk 0.1.0-beta3 connectycube_sdk: ^0.1.0-beta3 copied to clipboard
Flutter SDK for simple using ConnectyCube API features. Supports REST API and Realtime communication features.
Init ConnectyCube SDK #
String appId = "";
String authKey = "";
String authSecret = "";
init(appId, authKey, authSecret);
Create session #
CubeUser user = CubeUser(login: "user_login", password: "super_sequre_password");
createSession(user).then((cubeSession){
print("Session was created");
}).catchError((error){
print("Error was occured during create sessin");
});
Login to the chat #
CubeUser user = CubeUser(id: 123456, login: "user_login", password: "super_sequre_password");
CubeChatConnection.instance.login(user).then((user){
print("Success login to the chat");
}).catchError((error){
print("Error was occured during login to the chat");
});