WinWinKit class

Entry point for the WinWinKit Dart SDK.

final sdk = WinWinKit(apiKey: 'wwk_live_...');
final user = sdk.user('user_9f2c4e');
await user.registerAppStoreTransaction(
  originalTransactionId: '2000000912345678',
);

Constructors

WinWinKit({required String apiKey, Dio? dio, Serializers? serializers, String? basePathOverride})
Creates a WinWinKit client.

Properties

apiKey String
API key sent as the x-api-key header on every request.
final
dio → Dio
Underlying Dio client. Exposed for custom interceptors / error handling.
final
hashCode int
The hash code for this object.
no setterinherited
rawClaimActions ClaimActionsApi
Escape hatch: the raw generated ClaimActionsApi.
no setter
rawRewardsActions RewardsActionsApi
Escape hatch: the raw generated RewardsActionsApi.
no setter
rawUsers UsersApi
Escape hatch: the raw generated UsersApi for anything the facade does not wrap (cancel tokens, custom headers, progress callbacks).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializers → Serializers
Serializers used to encode/decode request and response bodies.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
user(String appUserId) UserClient
Scoped client for operations on a specific user.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

basePath → const String