progbonus_vendor_client 1.0.0 copy "progbonus_vendor_client: ^1.0.0" to clipboard
progbonus_vendor_client: ^1.0.0 copied to clipboard

Flutter package for ProgBonus Vendor Clients app.

Flutter package for ProgBonus Vendor Clients app.

Features #

  • Get customer information
  • Get customer's bonus information

Getting started #

import 'package:progbonus_vendor_client/progbonus_vendor_client.dart';

Usage #

JWT auth type #

Get.lazyPut<IProgBonusClient>(
  () => ProgBonusClient(
    baseUrl: Get.find<IAppConfig>().PROGBONUS_API_URL,
    tenantId: Get.find<IAppConfig>().PROGBONUS_TENANT_ID,
    authType: JwtAuthType(
      () => Get.find<AuthService>().idToken,
    ),
  ),
);

Secret auth type #

Get.lazyPut<IProgBonusClient>(
  () => ProgBonusClient(
    baseUrl: Get.find<IAppConfig>().PROGBONUS_API_URL,
    tenantId: Get.find<IAppConfig>().PROGBONUS_TENANT_ID,
    authType: SecretAuthType(
      secret: Get.find<IAppConfig>().PROGBONUS_TENANT_SECRET,
      ts: () {
        // return 'some secret string';
        return DateTime.now().toIso8601String();
      },
    ),
  ),
);

Additional information #

Contact us https://progbonus.ru

0
likes
110
pub points
8%
popularity

Publisher

unverified uploader

Flutter package for ProgBonus Vendor Clients app.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

crypto, equatable, fluent_result, flutter, http

More

Packages that depend on progbonus_vendor_client