donuz_dart_sdk

Creator: coderz1093

Last updated:

0 purchases

donuz_dart_sdk Image
donuz_dart_sdk Images

Languages

Categories

Add to Cart

Description:

donuz dart sdk

DONUZ Dart SDK #
A Sdk foi criada com o proposito de facilitar o uso para os clientes da Donuz com uma forma intuitiva de utilizar as apis e facilitar o desenvolvimento de aplicações com flutter/dart
Instalação #
a) Add in your pubspec.yaml:
dependencies:
donuz_dart_sdk: <last-version>
copied to clipboard
or use:
dart pub add donuz_dart_sdk
copied to clipboard
b) Run:
flutter pub get
copied to clipboard
c) init SDK:

late DonuzSDK donuzSDK;
void main() async {
WidgetsFlutterBinding.ensureInitialized();
donuzSDK = DonuzSDK(
config: DonuzConfig(donuzToken: '<YOUR TOKEN>', appId: '<YOUR APPID>'));
await donuzSDK.init();

runApp(const MyApp());
}

copied to clipboard
Examples #
Retorna as informações do estabelecimento informado no appId na configuracão da sdk #
donuzSDK.establisment.findEstablishmentById();
copied to clipboard
Retorna todos os prêmios cadastrados. #
await donuzSDK.prizes.getPrizes();
copied to clipboard
Faz o Login do usuario #
await donuzSDK.user.makeLogin(username: '12345678909',password: '12345678909');
copied to clipboard
Faz o Logout do usuario. #
await donuzSDK.user.makeLogout();
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.