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.
AltibbiService.init(
token: "USER_TOKEN",
baseUrl: "PARTNER_ENDPOINT",
language: "Language", // 'ar' || 'en'
);

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

ApiService apiService = ApiService();