Skip to main content

Initialization

Initialize the Altibbi SDK with the following parameters:

  • Partner Endpoint: Your partner endpoint (will be shared with you upon request).
  • Token: Authentication token from your backend.
  • Language: Preferred language for responses either Arabic (default) or English.
  • Sina Model End Point: Altibbi Sina AI Model.
AltibbiService.init(
token: "USER_TOKEN",
baseUrl: "PARTNER_ENDPOINT",
language: "Language", // 'ar' || 'en'
sinaModelEndPoint: "SINA_MODEL_ENDPOINT", // Optional parameter
);

After the initiation you can start using the APIs, like this :

ApiService apiService = ApiService();