totalcaresaudi_client 0.0.2
totalcaresaudi_client: ^0.0.2 copied to clipboard
Total Care Saudi client for third party integration.
This package contains all the essentials you need to perform RESTful calls to the official Total Care Saudi TPA web services for Dart-based (such as Flutter) projects!
Features #
- Token-based Authentication
- Insurance data retrieval
- Approvals checking
- Medical healthcare discovery
- User check-in capability
Usage #
To begin using the package, you need to import the following in your source file(s):
import 'packages:totalcaresaudi_client/totalcaresaudi_client.dart';
To create an instance of a totalcaresaudi_client
, use the following sample:
TcsApi(
url: 'ask_for_the_url',
headerOptions: HeaderOptions(
apiCompanyCode: 'insert_your_company_code_here',
apiKey: 'insert_your_api_key_here',
langCode: LangCode.en.name, // Or any other value.
)
);
Authentication Example
import 'packages:totalcaresaudi_client/totalcaresaudi_client.dart';
void main() {
// Create the TcsApi object
var tcsApi = TcsApi(...);
final result = await tcsApi.getAuthenticatedByIqama(
GetAuthenticatedByIqamaParams(
nationalID: 'some_id',
password: 'some_password'
)
);
}
Additional information #
For more information about this package, please contact the author of the repository.