Get all games available for a specific loyalty card, including user progress. This is useful for displaying games on a POS when a customer’s card has been scanned.
import { LoyaltySDK } from '@loyaltylt/sdk';const sdk = new LoyaltySDK({ apiKey: 'your_api_key', apiSecret: 'your_api_secret',});// Get games for a customer's cardconst games = await sdk.getCardGames(123, 1); // cardId, shopIdconsole.log(games);