The main entry point of the SDK is Glia
Below you can see some example code
Glia.init(new GliaConfig.Builder()
.setContext(getApplicationContext())
.setAppToken("APP_TOKEN")
.setSiteId("SITE_ID")
.setSiteId(getApplicationContext())
.build()
);
Glia.omnibrowse.getVisitorCode(new RequestCallback<VisitorCode>() {
@Override
public void onResult(VisitorCode response, GliaException exception) {
if (response != null) {
showVisitorCode(visitorCode.getCode());
}
if (exception != null && exception.cause.equals(GliaException.Cause.NETWORK_TIMEOUT)) {
showNetworkError();
}
}
});